public class DefaultDeleteEventlineObjectCommand extends AbstractCommand
DefaultEventlineModel and the eventline object implements
the IEventlineObject interface.DefaultEventlineModel.removeEventlineObject(IEventlineObject),
IEventlineObject,
IEditEventlineObjectPolicy.getDeleteCommand(java.util.Collection,
com.dlsc.flexgantt.model.eventline.IEventlineModel),
Serialized Form| Constructor and Description |
|---|
DefaultDeleteEventlineObjectCommand(IEventlineObject object,
DefaultEventlineModel model)
Constructs a new command.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getName, isRedoable, isRelevant, isUndoable, redoCommand, setNamepublic DefaultDeleteEventlineObjectCommand(IEventlineObject object, DefaultEventlineModel model)
object - the eventline object that will be deletedmodel - the model of which the object is a memberpublic 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 IEventlineObject getEventlineObject()
public DefaultEventlineModel getModel()
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.