Class ScheduleResource
java.lang.Object
com.codename1.scheduling.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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe resource's own working hours, or null for the project's.floatintgetColor()An RGB colour for the resource's items, or -1 for the theme's.A second line under the name: a role, a room's size.The id of the resource this one is grouped under, or null.getId()getName()setCapacity(float v) setColor(int v) setGroupId(String v) toString()Returns a string representation of the object.
-
Constructor Details
-
ScheduleResource
-
-
Method Details
-
getId
-
getName
-
setName
-
getDetail
A second line under the name: a role, a room's size. -
setDetail
-
getGroupId
The id of the resource this one is grouped under, or null. -
setGroupId
-
getCapacity
public float getCapacity() -
setCapacity
-
getCalendar
The resource's own working hours, or null for the project's. -
setCalendar
-
getColor
public int getColor()An RGB colour for the resource's items, or -1 for the theme's. -
setColor
-
getUserObject
-
setUserObject
-
toString
Description copied from class:ObjectReturns 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())
-