Interface SchedulerListener
- All Known Implementing Classes:
SchedulerAdapter
public interface SchedulerListener
What a
Scheduler tells an application about. Extend SchedulerAdapter
to implement only what is needed.-
Method Summary
Modifier and TypeMethodDescriptionbooleanitemChanging(Scheduler scheduler, ScheduleItem item, long start, long end, String resourceId) An item was dragged or resized and is about to change.voiditemOpened(Scheduler scheduler, ScheduleItem item) An item was opened: tapped on a touch screen, double clicked with a mouse.voiditemSelected(Scheduler scheduler, ScheduleItem item) The selection changed.voidrangeSelected(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.voidvisibleRangeChanged(Scheduler scheduler, long start, long end) The view moved to another stretch of time,startinclusive toendexclusive.
-
Method Details
-
itemSelected
The selection changed.itemis null when nothing is selected now. -
itemOpened
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
A stretch of empty time was chosen, by a long press, a drag or a double click.resourceIdis 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
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
The view moved to another stretch of time,startinclusive toendexclusive.
-