it.amattioli.applicate.commands.executors
Class UndoCommand

Show UML class diagram
java.lang.Object
  extended by it.amattioli.applicate.commands.AbstractCommand
      extended by 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

Constructor Summary
UndoCommand()
           
 
Method Summary
 void doCommand()
          Undo the last command executed by the executor that is calling it.
 void setCommandExecutor(CommandExecutor executor)
           
 
Methods inherited from class it.amattioli.applicate.commands.AbstractCommand
addCommandListener, addCommandListener, addPropertyChangeListener, cancelCommand, firePropertyChange, getPropertyValues, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.amattioli.applicate.commands.Command
addCommandListener, addCommandListener, cancelCommand
 
Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

UndoCommand

public UndoCommand()
Method Detail

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.