VdexReload 1.1.3 API

uk.ac.reload.dweezil.undo
Class UndoHandler

java.lang.Object
  extended byuk.ac.reload.dweezil.undo.UndoHandler

public class UndoHandler
extends java.lang.Object

An Undo Handler


Constructor Summary
UndoHandler()
          Default constructor
UndoHandler(UndoListener undoListener)
          Constructor
 
Method Summary
 void addUndoableAction(UndoableAction action)
          An Undoable Action occurred so add it to the Stack
 void clearAll()
          Clear Stacks and menus
 UndoableAction nextRedoAction()
          Get the Next Redoable Undo Action
 UndoableAction nextUndoAction()
          Get the the Next Undoable Undo Action
 UndoableAction redoLastAction()
          Redo the last Action in the Stack
 UndoableAction undoLastAction()
          Undo the last Action in the Stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoHandler

public UndoHandler()
Default constructor


UndoHandler

public UndoHandler(UndoListener undoListener)
Constructor

Parameters:
undoListener - the listener parent
Method Detail

addUndoableAction

public void addUndoableAction(UndoableAction action)
An Undoable Action occurred so add it to the Stack

Parameters:
action - the undoable action that occurred

undoLastAction

public UndoableAction undoLastAction()
Undo the last Action in the Stack

Returns:
The Action that took place or null if there isn't one

redoLastAction

public UndoableAction redoLastAction()
Redo the last Action in the Stack

Returns:
The Action that took place or null if there isn't one

clearAll

public void clearAll()
Clear Stacks and menus


nextUndoAction

public UndoableAction nextUndoAction()
Get the the Next Undoable Undo Action

Returns:
the Next Undoable Undo Action or null

nextRedoAction

public UndoableAction nextRedoAction()
Get the Next Redoable Undo Action

Returns:
the Next Redoable Undo Action or null

VdexReload 1.1.3 API