Class ScheduleItem
java.lang.Object
com.codename1.scheduling.ScheduleItem
One thing on a schedule: an appointment, a shift, a block of busy time.
start and end are epoch milliseconds and end is exclusive. An all-day
item runs from the start of its first day to the start of the day after its
last, in the zone of the view that shows it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow an item is drawn, apart from its colour. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColor()An RGB colour, or -1 for the resource's or the theme's.A second line: a place, a client's name.longgetEnd()getId()getKind()The resource the item belongs to, or null when the schedule has none.longgetStart()getTitle()getUIID()The UIID the item is drawn with in place ofSchedulerItem, or null.booleanintersects(long from, long to) Whether any of the item is inside[from, to).booleanisAllDay()booleanbooleanWhether the item is one occurrence of a series, which a view marks.booleansetAllDay(boolean v) setColor(int v) setMovable(boolean v) setRecurring(boolean v) setResizable(boolean v) setTime(long start, long end) toString()Returns a string representation of the object.
-
Constructor Details
-
ScheduleItem
-
-
Method Details
-
getId
-
getTitle
-
setTitle
-
getDetail
A second line: a place, a client's name. -
setDetail
-
getStart
public long getStart() -
getEnd
public long getEnd() -
setTime
-
isAllDay
public boolean isAllDay() -
setAllDay
-
getResourceId
The resource the item belongs to, or null when the schedule has none. -
setResourceId
-
getKind
-
setKind
-
getUIID
The UIID the item is drawn with in place ofSchedulerItem, or null. Its background, foreground and font are used, and its selected style while the item is selected. -
setUIID
-
getColor
public int getColor()An RGB colour, or -1 for the resource's or the theme's. -
setColor
-
isMovable
public boolean isMovable() -
setMovable
-
isResizable
public boolean isResizable() -
setResizable
-
isRecurring
public boolean isRecurring()Whether the item is one occurrence of a series, which a view marks. -
setRecurring
-
getUserObject
-
setUserObject
-
intersects
public boolean intersects(long from, long to) Whether any of the item is inside[from, to). -
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())
-