|
||||||||||
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.DefaultCreateRelationshipCommand
public class DefaultCreateRelationshipCommand
A command that will add a relationship to the Gantt chart model.
IRelationshipPolicy.getCreateRelationshipCommand(com.dlsc.flexgantt.model.gantt.TimelineObjectPath,
com.dlsc.flexgantt.model.gantt.TimelineObjectPath,
com.dlsc.flexgantt.model.gantt.IGanttChartModel)
,
Serialized FormConstructor Summary | |
---|---|
DefaultCreateRelationshipCommand(TimelineObjectPath sourcePath,
TimelineObjectPath targetPath,
DefaultGanttChartModel model)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
DefaultGanttChartModel |
getModel()
Returns the model for which the command creates / created a new relationship object. |
DefaultRelationship |
getRelationship()
The relationship that was created by the command. |
TimelineObjectPath |
getSourcePath()
The path to the timeline object that will be used as the source of the relationship. |
TimelineObjectPath |
getTargetPath()
The path to the timeline object that will be used as the target of the relationship. |
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 DefaultCreateRelationshipCommand(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, DefaultGanttChartModel model)
sourcePath
- the path to the source timeline objecttargetPath
- the path to the target timeline objectmodel
- the model for which to create the relationship objectMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic DefaultGanttChartModel getModel()
public DefaultRelationship getRelationship()
public TimelineObjectPath getSourcePath()
public TimelineObjectPath getTargetPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |