Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class SchedulerAdapter
- Object
- SchedulerAdapter
ImplementsSchedulerListener
A
SchedulerListener that does nothing and refuses nothing.Constructors
public SchedulerAdapter() |
Methods
public void itemSelected(Scheduler scheduler, ScheduleItem item) | The selection changed. |
public void itemOpened(Scheduler scheduler, ScheduleItem item) | An item was opened: tapped on a touch screen, double clicked with a mouse. |
public 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 boolean itemChanging(Scheduler scheduler, ScheduleItem item, long start, long end, String resourceId) | An item was dragged or resized and is about to change. |
public void visibleRangeChanged(Scheduler scheduler, long start, long end) | The view moved to another stretch of time, start inclusive to end exclusive. |
Inherited methods
Constructor details
SchedulerAdapter
public SchedulerAdapter()Method details
itemSelected
public void itemSelected(Scheduler scheduler, ScheduleItem item)The selection changed.
item is null when nothing is selected now.itemOpened
public 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 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 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 void visibleRangeChanged(Scheduler scheduler, long start, long end)The view moved to another stretch of time,
start inclusive to end
exclusive.