public class ActionStack extends Object
Constructor and Description |
---|
ActionStack() |
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(StateListener sl) |
static UndoableActions |
chainActions(UndoableActions a,
UndoableActions b)
For performing multiple actions such that they are undone, and redone together and in sequence.
|
void |
clearHistory() |
long |
getCurrentState() |
String |
getRedoableActionName() |
String |
getUndoableActionName() |
boolean |
hasRedo() |
boolean |
hasUndo() |
void |
postAction(UndoableActions action) |
void |
redo() |
void |
removeStateListener(StateListener sl) |
void |
undo() |
public long getCurrentState()
public boolean hasUndo()
public boolean hasRedo()
public String getUndoableActionName()
public String getRedoableActionName()
public void undo()
public void redo()
public void clearHistory()
public void postAction(UndoableActions action)
public static UndoableActions chainActions(UndoableActions a, UndoableActions b)
a
- b
- public void addStateListener(StateListener sl)
public void removeStateListener(StateListener sl)
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.