Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class GanttAdapter
- Object
- GanttAdapter
ImplementsGanttListener
A
GanttListener that does nothing and refuses nothing.Constructors
public GanttAdapter() |
Methods
public void taskSelected(Gantt gantt, GanttTask task) | The selection changed. |
public void taskOpened(Gantt gantt, GanttTask task) | A task was double tapped, in the table or on the chart. |
public boolean taskChanging(Gantt gantt, GanttTask task, long start, long end) | 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. |
public void taskChanged(Gantt gantt, GanttTask task) | A task was changed by the user and the project has been scheduled again: moved, resized, or given a new progress. |
public boolean linkCreating(Gantt gantt, GanttTask predecessor, GanttTask successor) | A link was dragged from one task to another and is about to be made, finish to start. |
Inherited methods
Constructor details
GanttAdapter
public GanttAdapter()Method details
taskSelected
public void taskSelected(Gantt gantt, GanttTask task)The selection changed.
task is null when nothing is selected now.taskOpened
public void taskOpened(Gantt gantt, GanttTask task)A task was double tapped, in the table or on the chart.
taskChanging
public boolean taskChanging(Gantt gantt, GanttTask task, long start, long end)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
taskChanged
public void taskChanged(Gantt gantt, GanttTask task)A task was changed by the user and the project has been scheduled
again: moved, resized, or given a new progress.
linkCreating
public boolean linkCreating(Gantt gantt, GanttTask predecessor, GanttTask successor)A link was dragged from one task to another and is about to be made,
finish to start.
Returns
false to refuse