Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class ScheduleResource

  1. Object
  2. ScheduleResource

Something work is booked against: a person, a room, a machine, a calendar.

A Scheduler draws one row or one column per resource, and a project assigns tasks to them. capacity is how much of it there is at once: 1 is one person full time, 3 a pool of three.

Constructors

public ScheduleResource(String id, String name)

Methods

public String getId()
public String getName()
public ScheduleResource setName(String v)
public String getDetail()A second line under the name: a role, a room’s size.
public ScheduleResource setDetail(String v)
public String getGroupId()The id of the resource this one is grouped under, or null.
public ScheduleResource setGroupId(String v)
public float getCapacity()
public ScheduleResource setCapacity(float v)
public WorkCalendar getCalendar()The resource’s own working hours, or null for the project’s.
public ScheduleResource setCalendar(WorkCalendar v)
public int getColor()An RGB colour for the resource’s items, or -1 for the theme’s.
public ScheduleResource setColor(int v)
public Object getUserObject()
public ScheduleResource setUserObject(Object v)
public String toString()Returns a string representation of the object.

Inherited methods

Constructor details

ScheduleResource

public ScheduleResource(String id, String name)

Method details

getId

public String getId()

getName

public String getName()

setName

public ScheduleResource setName(String v)

getDetail

public String getDetail()
A second line under the name: a role, a room’s size.

setDetail

public ScheduleResource setDetail(String v)

getGroupId

public String getGroupId()
The id of the resource this one is grouped under, or null.

setGroupId

public ScheduleResource setGroupId(String v)

getCapacity

public float getCapacity()

setCapacity

public ScheduleResource setCapacity(float v)

getCalendar

public WorkCalendar getCalendar()
The resource’s own working hours, or null for the project’s.

setCalendar

public ScheduleResource setCalendar(WorkCalendar v)

getColor

public int getColor()
An RGB colour for the resource’s items, or -1 for the theme’s.

setColor

public ScheduleResource setColor(int v)

getUserObject

public Object getUserObject()

setUserObject

public ScheduleResource setUserObject(Object v)

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that “textually represents” this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method. The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@’, and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of: getClass().getName() + ‘@’ + Integer.toHexString(hashCode())