|
||||||||||
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.DefaultCreateEventlineObjectCommand
public class DefaultCreateEventlineObjectCommand
A command that is used to create an eventline object and add it to an
eventline model. This command can only be used in situations where the model
is an instance of DefaultEventlineModel
.
DefaultEventlineModel.addEventlineObject(IEventlineObject)
,
IEventlineObject
,
IEditEventlineObjectPolicy.getCreateCommand(com.dlsc.flexgantt.model.eventline.IEventlineModel,
com.dlsc.flexgantt.model.ITimeSpan)
,
Serialized FormConstructor Summary | |
---|---|
DefaultCreateEventlineObjectCommand(DefaultEventlineModel model,
ITimeSpan span)
Constructs a new command. |
Method Summary | |
---|---|
protected DefaultEventlineObject |
createEventlineObject()
Constructs and returns a new eventline object. |
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
DefaultEventlineObject |
getEventlineObject()
Returns the eventline object that was created. |
DefaultEventlineModel |
getModel()
Returns the model of which the eventline object is a member. |
ITimeSpan |
getTimeSpan()
Returns the time span that will be assigned to the newly created eventline object. |
void |
setEventlineObjectName(java.lang.String name)
Specifies a name that will be used for the eventline object. |
void |
setTimeSpan(ITimeSpan span)
Specifies the time span that will be assigned to the newly created eventline object. |
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 DefaultCreateEventlineObjectCommand(DefaultEventlineModel model, ITimeSpan span)
model
- the model of which the object is a memberspan
- the time span that will be initially assigned to the new
eventline objectMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorprotected DefaultEventlineObject createEventlineObject()
DefaultEventlineObject
.
public DefaultEventlineObject getEventlineObject()
public DefaultEventlineModel getModel()
public ITimeSpan getTimeSpan()
public void setTimeSpan(ITimeSpan span)
span
- the time span for the new eventline objectpublic void setEventlineObjectName(java.lang.String name)
name
- the name of the eventline object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |