abbot.editor.actions
Class CommandHistory

java.lang.Object
  extended by abbot.editor.actions.CommandHistory

public class CommandHistory
extends Object

Keep a history of commands, enabling potentially unlimited undo. This class is not synchronized.

Note that undo is itself an undoable action.


Constructor Summary
CommandHistory()
           
 
Method Summary
 void add(Command command)
          Add the given command to the command history.
 boolean canUndo()
           
 void clear()
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandHistory

public CommandHistory()
Method Detail

canUndo

public boolean canUndo()

undo

public void undo()
          throws NoUndoException
Throws:
NoUndoException

add

public void add(Command command)
Add the given command to the command history.


clear

public void clear()


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge