public class OperationsManager
extends java.lang.Object
Constructor and Description |
---|
OperationsManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCommand(IUndoableCommand command)
Execute a command and push it to undo stack.
|
void |
addListener(IOperationsManagerListener listener) |
java.lang.Object[] |
getRedoCommands() |
int |
getRedoCommandsSize() |
java.lang.Object[] |
getUndoCommands() |
int |
getUndoCommandsSize() |
void |
redo()
redo the last undone command.
|
void |
redoCommand(IUndoableCommand command)
Re-do the command.
|
boolean |
removeListener(IOperationsManagerListener listener) |
void |
undo()
undo the last command.
|
void |
undoCommand(IUndoableCommand command)
Undo the command.
|
public void addCommand(IUndoableCommand command)
command
- the command to be executed.public void undoCommand(IUndoableCommand command)
command
- public void redoCommand(IUndoableCommand command)
command
- public void undo()
public void redo()
public java.lang.Object[] getUndoCommands()
public java.lang.Object[] getRedoCommands()
public void addListener(IOperationsManagerListener listener)
public boolean removeListener(IOperationsManagerListener listener)
public int getUndoCommandsSize()
public int getRedoCommandsSize()