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 Details

    • itemSelected

      void itemSelected(Scheduler scheduler, ScheduleItem item)
      The selection changed. item is null when nothing is selected now.
    • itemOpened

      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

      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

      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

      void visibleRangeChanged(Scheduler scheduler, long start, long end)
      The view moved to another stretch of time, start inclusive to end exclusive.