org.pm4j.core.pm
Interface PmCommandHistory

All Known Implementing Classes:
PmCommandHistoryImpl

public interface PmCommandHistory

Provides the set of undo/redo-able commands.

Author:
olaf boede

Method Summary
 void commandDone(PmCommand command)
          Informs about a just executed command.
 java.util.List<PmCommand> getRedoList()
           
 java.util.List<PmCommand> getUndoList()
           
 void redoNext()
           
 void undoNext()
           
 

Method Detail

getUndoList

java.util.List<PmCommand> getUndoList()

getRedoList

java.util.List<PmCommand> getRedoList()

redoNext

void redoNext()

undoNext

void undoNext()

commandDone

void commandDone(PmCommand command)
Informs about a just executed command. The session may use it to maintain an undo list.

Parameters:
command - The just executed command.