com.partnersoft.v3x.gadgets
Interface Command


public interface Command

A generic Command, designed as an encapsulated action that can be reversed in proper context. That is, if objects affected by the command are not altered after the command is executed, the command may be reversed using the undo() method. However, if the objects affected by the command are altered after the command is executed, an undo() call may have unexpected results.


Method Summary
 java.lang.Object doAction()
          Performs the action.
 java.lang.Object undoAction()
          Unperforms the action.
 

Method Detail

doAction

java.lang.Object doAction()
Performs the action.


undoAction

java.lang.Object undoAction()
Unperforms the action.