Class GanttAdapter

java.lang.Object
com.codename1.ui.scheduler.GanttAdapter
All Implemented Interfaces:
GanttListener

public class GanttAdapter extends Object implements GanttListener
A GanttListener that does nothing and refuses nothing.
  • Constructor Details

    • GanttAdapter

      public GanttAdapter()
  • Method Details

    • taskSelected

      public void taskSelected(Gantt gantt, GanttTask task)
      Description copied from interface: GanttListener
      The selection changed. task is null when nothing is selected now.
      Specified by:
      taskSelected in interface GanttListener
    • taskOpened

      public void taskOpened(Gantt gantt, GanttTask task)
      Description copied from interface: GanttListener
      A task was double tapped, in the table or on the chart.
      Specified by:
      taskOpened in interface GanttListener
    • taskChanging

      public boolean taskChanging(Gantt gantt, GanttTask task, long start, long end)
      Description copied from interface: GanttListener

      A task was dragged or resized and is about to be given new dates, or its progress was dragged, which offers the dates it already has. The project is scheduled again afterwards, so the dates it ends up with are these only where its links and its calendar allow them.

      Returns

      false to refuse, which leaves the task as it was

      Specified by:
      taskChanging in interface GanttListener
    • taskChanged

      public void taskChanged(Gantt gantt, GanttTask task)
      Description copied from interface: GanttListener
      A task was changed by the user and the project has been scheduled again: moved, resized, or given a new progress.
      Specified by:
      taskChanged in interface GanttListener
    • linkCreating

      public boolean linkCreating(Gantt gantt, GanttTask predecessor, GanttTask successor)
      Description copied from interface: GanttListener

      A link was dragged from one task to another and is about to be made, finish to start.

      Returns

      false to refuse

      Specified by:
      linkCreating in interface GanttListener