org.openbp.jaspira.undo
Class UndoMgr.Transaction

java.lang.Object
  extended by org.openbp.jaspira.undo.UndoMgr.Transaction
Enclosing class:
UndoMgr

public class UndoMgr.Transaction
extends java.lang.Object

A Transaction is a set of actions.


Constructor Summary
UndoMgr.Transaction(java.lang.String displayName)
           
 
Method Summary
 void addUndoable(Undoable undo)
          Adds an undoable object to the transition.
 java.lang.String getDisplayName()
          Returns the Name of the Transaction.
 boolean isRedoable()
          Returns true if the Transaction can be redo.
 void redo()
          Undo the Transaction.
 void undo()
          Undo the Transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoMgr.Transaction

public UndoMgr.Transaction(java.lang.String displayName)
Method Detail

addUndoable

public void addUndoable(Undoable undo)
Adds an undoable object to the transition.

Parameters:
undo - The undoable to add

isRedoable

public boolean isRedoable()
Returns true if the Transaction can be redo.

Returns:
boolean - true: is reduable false: is not reduable

undo

public void undo()
Undo the Transaction.


redo

public void redo()
Undo the Transaction.


getDisplayName

public java.lang.String getDisplayName()
Returns the Name of the Transaction. This name can be used to display the Trasnaction on screen.

Returns:
String name of the Transaction


Copyright © 2011. All Rights Reserved.