org.pm4j.core.pm.impl
Class PmCommandHistoryImpl

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmCommandHistoryImpl
All Implemented Interfaces:
PmCommandHistory

public class PmCommandHistoryImpl
extends java.lang.Object
implements PmCommandHistory


Constructor Summary
PmCommandHistoryImpl()
           
 
Method Summary
 void clear()
           
 void commandDone(PmCommand command)
          Informs about a just executed command.
 java.util.List<PmCommand> getRedoList()
           
 java.util.List<PmCommand> getUndoList()
           
 void redoNext()
           
 void setMaxRedoItems(int count)
           
 void setMaxUndoItems(int count)
           
 void undoNext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmCommandHistoryImpl

public PmCommandHistoryImpl()
Method Detail

getRedoList

public java.util.List<PmCommand> getRedoList()
Specified by:
getRedoList in interface PmCommandHistory

getUndoList

public java.util.List<PmCommand> getUndoList()
Specified by:
getUndoList in interface PmCommandHistory

clear

public void clear()

setMaxRedoItems

public void setMaxRedoItems(int count)

setMaxUndoItems

public void setMaxUndoItems(int count)

redoNext

public void redoNext()
Specified by:
redoNext in interface PmCommandHistory

undoNext

public void undoNext()
Specified by:
undoNext in interface PmCommandHistory

commandDone

public void commandDone(PmCommand command)
Description copied from interface: PmCommandHistory
Informs about a just executed command. The session may use it to maintain an undo list.

Specified by:
commandDone in interface PmCommandHistory
Parameters:
command - The just executed command.