public class DummyUndoableActionManager extends Object implements UndoableActionManager, Serializable
Constructor and Description |
---|
DummyUndoableActionManager() |
Modifier and Type | Method and Description |
---|---|
void |
bind(Spreadsheet spreadsheet)
Will be called when a manager create
|
void |
clear()
clear the history
|
void |
doAction(UndoableAction action)
Do the action and put it into history
|
String |
getRedoLabel()
Get redo label, only available if
UndoableActionManager.isRedoable() |
String |
getUndoLabel()
Get undo label, only available if
UndoableActionManager.isUndoable() |
boolean |
isRedoable()
Is redoable
|
boolean |
isUndoable()
Is undoable
|
void |
redoAction()
redo the last undo action, only availabel if
UndoableActionManager.isRedoable() |
void |
setMaxHsitorySize(int size)
Sets the maximun history size
|
void |
undoAction()
undo last action, only available if
UndoableActionManager.isUndoable() |
public void doAction(UndoableAction action)
UndoableActionManager
doAction
in interface UndoableActionManager
public boolean isUndoable()
UndoableActionManager
isUndoable
in interface UndoableActionManager
public String getUndoLabel()
UndoableActionManager
UndoableActionManager.isUndoable()
getUndoLabel
in interface UndoableActionManager
public void undoAction()
UndoableActionManager
UndoableActionManager.isUndoable()
undoAction
in interface UndoableActionManager
public boolean isRedoable()
UndoableActionManager
isRedoable
in interface UndoableActionManager
public String getRedoLabel()
UndoableActionManager
UndoableActionManager.isRedoable()
getRedoLabel
in interface UndoableActionManager
public void redoAction()
UndoableActionManager
UndoableActionManager.isRedoable()
redoAction
in interface UndoableActionManager
public void clear()
UndoableActionManager
clear
in interface UndoableActionManager
public void setMaxHsitorySize(int size)
UndoableActionManager
setMaxHsitorySize
in interface UndoableActionManager
public void bind(Spreadsheet spreadsheet)
UndoableActionManager
bind
in interface UndoableActionManager
Copyright © 2020. All rights reserved.