Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface SchedulerListener
Known subtypesSchedulerAdapter
What a
Scheduler tells an application about. Extend SchedulerAdapter
to implement only what is needed.Methods
public abstract void itemSelected(Scheduler scheduler, ScheduleItem item) | The selection changed. |
public abstract void itemOpened(Scheduler scheduler, ScheduleItem item) | An item was opened: tapped on a touch screen, double clicked with a mouse. |
public abstract void rangeSelected(Scheduler scheduler, long start, long end, String resourceId) | A stretch of empty time was chosen, by a long press, a drag or a double click. |
public abstract boolean itemChanging(Scheduler scheduler, ScheduleItem item, long start, long end, String resourceId) | An item was dragged or resized and is about to change. |
public abstract void visibleRangeChanged(Scheduler scheduler, long start, long end) | The view moved to another stretch of time, start inclusive to end exclusive. |
Method details
itemSelected
public abstract void itemSelected(Scheduler scheduler, ScheduleItem item)The selection changed.
item is null when nothing is selected now.itemOpened
public abstract void itemOpened(Scheduler scheduler, ScheduleItem item)An item was opened: tapped on a touch screen, double clicked with a
mouse. This is where an application shows the item’s details.
rangeSelected
public abstract void rangeSelected(Scheduler scheduler, long start, long end, String resourceId)A stretch of empty time was chosen, by a long press, a drag or a double
click.
resourceId is null in a view with no resources. The model is
asked to create an item after this returns, so an application that
shows its own editor leaves creation off in the model.itemChanging
public abstract boolean itemChanging(Scheduler scheduler, ScheduleItem item, long start, long end, String resourceId)An item was dragged or resized and is about to change.
Returns
false to refuse, which leaves the item where it was
visibleRangeChanged
public abstract void visibleRangeChanged(Scheduler scheduler, long start, long end)The view moved to another stretch of time,
start inclusive to end
exclusive.