|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.command.AbstractCommand
public abstract class AbstractCommand
An abstract superclass implementation to facilitate the creation of new commands. This class handles the naming of commands and provides a default implementation of the redo functionality by simply calling the execution method again.
ICommand
,
Serialized FormConstructor Summary | |
---|---|
protected |
AbstractCommand(java.lang.String name)
Creates a new abstract command (can only be called by the subclass constructor). |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the (display) name of the command. |
boolean |
isRedoable()
Returns TRUE if the command can be redone. |
boolean |
isRelevant()
Returns TRUE if the command is relevant and should be considered for undo / redo operations. |
boolean |
isUndoable()
Returns TRUE if the command can be undone. |
void |
redoCommand(IProgressMonitor monitor)
Executes the command again after a call to the command's undo method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.dlsc.flexgantt.command.ICommand |
---|
executeCommand, undoCommand |
Constructor Detail |
---|
protected AbstractCommand(java.lang.String name)
name
- the name of the commandMethod Detail |
---|
public java.lang.String getName()
getName
in interface ICommand
ICommand.getName()
public boolean isRedoable()
isRedoable
in interface ICommand
ICommand.isRedoable()
public boolean isRelevant()
isRelevant
in interface ICommand
ICommand.isRelevant()
public boolean isUndoable()
isUndoable
in interface ICommand
ICommand.isUndoable()
public void redoCommand(IProgressMonitor monitor)
redoCommand
in interface ICommand
monitor
- a progress monitorICommand.redoCommand(IProgressMonitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |