public class DefaultMultiDragAndDropCommand extends AbstractDragAndDropCommand
DefaultGanttChartModel, the old and the new tree node
implement the IGanttChartNode interface, and the timeline object
implements the ITimelineObject interface.| Constructor and Description |
|---|
DefaultMultiDragAndDropCommand(IGanttChartNode owner,
ILayer layer,
ITimelineObject[] timelineObjects,
DefaultGanttChartModel model,
IGanttChartNode newOwner,
DefaultGanttChartModel newModel,
int dropAction)
Constructs a new command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command.
|
ITimelineObject[] |
getTimelineObjects()
Returns the timeline objects that get dragged & dropped.
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
fixRelationships, getDropAction, getLayer, getNewModel, getNewOwner, getOldModel, getOldOwnergetName, isRedoable, isRelevant, isUndoable, redoCommand, setNamepublic DefaultMultiDragAndDropCommand(IGanttChartNode owner, ILayer layer, ITimelineObject[] timelineObjects, DefaultGanttChartModel model, IGanttChartNode newOwner, DefaultGanttChartModel newModel, int dropAction)
owner - the current owner / tree node on which to which the timeline
object is assignedlayer - the layer on which the timeline object gets currently
displayedtimelineObjects - the timeline objects that get dragged & droppedmodel - the model in which the owner and the timeline object are
storednewOwner - the new owner / tree node to which the timeline object gets
assignednewModel - the new model in which the timeline object gets storeddropAction - the type of drop performed (possible values are listed in
DnDConstants)public void executeCommand(IProgressMonitor monitor) throws CommandException
ICommandmonitor - a progress monitorCommandException - if anything during the execution of the command has gone
wrongpublic void undoCommand(IProgressMonitor monitor) throws CommandException
ICommandmonitor - a progress monitorCommandException - if anything during the execution of the command has gone
wrongpublic ITimelineObject[] getTimelineObjects()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.