Class ScheduleResource

java.lang.Object
com.codename1.scheduling.ScheduleResource

public final class ScheduleResource extends Object

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 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()
      Description copied from class: Object
      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())
      Overrides:
      toString in class Object