|
||||||||||
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.DefaultDeleteEventlineObjectCommand
public class DefaultDeleteEventlineObjectCommand
A command that is used to delete an eventline object from the eventline
model. 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.removeEventlineObject(IEventlineObject)
,
IEventlineObject
,
IEditEventlineObjectPolicy.getDeleteCommand(Object,
com.dlsc.flexgantt.model.eventline.IEventlineModel)
,
Serialized FormConstructor Summary | |
---|---|
DefaultDeleteEventlineObjectCommand(IEventlineObject object,
DefaultEventlineModel model)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
IEventlineObject |
getEventlineObject()
Returns the eventline object that was / will be deleted |
DefaultEventlineModel |
getModel()
Returns the model of which the eventline object is a member. |
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 DefaultDeleteEventlineObjectCommand(IEventlineObject object, DefaultEventlineModel model)
object
- the eventline object that will be deletedmodel
- the model of which the object is a memberMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic IEventlineObject getEventlineObject()
public DefaultEventlineModel getModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |