|
||||||||||
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.eventline.DefaultChangeEventlineObjectTimeSpanCommand
public class DefaultChangeEventlineObjectTimeSpanCommand
A command that is used to change the time span of an eventline object. The
command will perform the change via the eventline model and not directly on
the eventline object. This way it ensures that the appropriate events will be
thrown and the UI will be updated accordingly. This command can only be used
in situations where the model is an instance of DefaultEventlineModel
and the eventline object implements the IEventlineObject
interface.
DefaultEventlineModel.setTimeSpan(IEventlineObject, ITimeSpan)
,
IEventlineObject
,
IEditEventlineObjectPolicy.getChangeTimeSpanCommand(Object,
com.dlsc.flexgantt.model.eventline.IEventlineModel, ITimeSpan)
,
Serialized FormConstructor Summary | |
---|---|
DefaultChangeEventlineObjectTimeSpanCommand(IEventlineObject object,
DefaultEventlineModel model,
ITimeSpan span)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
ITimelineObject |
getEventlineObject()
Returns the eventline object that received a new time span. |
DefaultEventlineModel |
getModel()
Returns the eventline model to which the eventline object belongs. |
ITimeSpan |
getNewTimeSpan()
Returns the new time span that was assigned to the eventline object through the command. |
ITimeSpan |
getOldTimeSpan()
Returns the old time span that was assigned to the eventline object before the command was executed. |
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 DefaultChangeEventlineObjectTimeSpanCommand(IEventlineObject object, DefaultEventlineModel model, ITimeSpan span)
object
- the eventline object that will be modifiedmodel
- the model to which the eventline object belongsspan
- the new time span that will be assigned to the eventline
objectMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic DefaultEventlineModel getModel()
public ITimeSpan getNewTimeSpan()
public ITimeSpan getOldTimeSpan()
public ITimelineObject getEventlineObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |