it.amattioli.applicate.commands.executors
Class UndoCommand
java.lang.Object
it.amattioli.applicate.commands.AbstractCommand
it.amattioli.applicate.commands.executors.UndoCommand
- All Implemented Interfaces:
- Command, ExecutorAwareCommand, ValuesLister, it.amattioli.dominate.util.PropertyChangeEmitter
public class UndoCommand
- extends AbstractCommand
- implements ExecutorAwareCommand
Command used to undo other commands. Send this command to an UndoableExecutor
to undo the last command executed by the executor.
- Author:
- andrea
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
addPropertyChangeListener, removePropertyChangeListener |
UndoCommand
public UndoCommand()
setCommandExecutor
public void setCommandExecutor(CommandExecutor executor)
- Specified by:
setCommandExecutor in interface ExecutorAwareCommand
doCommand
public void doCommand()
throws ApplicationException
- Undo the last command executed by the executor that is calling it.
- Specified by:
doCommand in interface Command- Overrides:
doCommand in class AbstractCommand
- Throws:
IllegalStateException - if the executor is not an UndoableExecutor
ApplicationException
Copyright © 2011. All Rights Reserved.