|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.command.AbstractCommand com.dlsc.flexgantt.command.layer.DefaultDeleteTimelineObjectCommand
public class DefaultDeleteTimelineObjectCommand
A command that deletes a timeline object from a Gantt chart model. This
command will only work in situations where the model is an instance of
DefaultGanttChartModel
, the timeline object implements the
ITimelineObject
interface, and the tree node implements the
IGanttChartNode
interface.
IEditTimelineObjectPolicy.getDeleteCommand(Object, ILayer, Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel)
,
DefaultGanttChartModel.removeTimelineObject(IGanttChartNode, ILayer,
ITimelineObject)
,
Serialized FormConstructor Summary | |
---|---|
DefaultDeleteTimelineObjectCommand(IGanttChartNode node,
ILayer layer,
ITimelineObject object,
DefaultGanttChartModel model)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
ILayer |
getLayer()
Returns the layer on which the timeline object gets displayed. |
DefaultGanttChartModel |
getModel()
Returns the model in which the tree node and the deleted timeline object are stored. |
IGanttChartNode |
getNode()
Returns the tree node that owns the timeline object (the object gets shown in the row of that node). |
ITimelineObject |
getTimelineObject()
Returns the timeline object that will / was deleted. |
void |
undoCommand(IProgressMonitor monitor)
Undos the command. |
Methods inherited from class com.dlsc.flexgantt.command.AbstractCommand |
---|
getName, isRedoable, isRelevant, isUndoable, redoCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDeleteTimelineObjectCommand(IGanttChartNode node, ILayer layer, ITimelineObject object, DefaultGanttChartModel model)
node
- the tree node that owns the timeline object (the object is
displayed in the row of that node)layer
- the layer on which the timeline object gets displayedobject
- the timeline object that will be deletedmodel
- the model in which the node and the timeline object are storedMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic ITimelineObject getTimelineObject()
public DefaultGanttChartModel getModel()
public ILayer getLayer()
public IGanttChartNode getNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |