public class UndoableActionManagerImpl extends java.lang.Object implements UndoableActionManager
Constructor and Description |
---|
UndoableActionManagerImpl() |
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
|
java.lang.String |
getRedoLabel()
Get redo label, only available if
UndoableActionManager.isRedoable() |
java.lang.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 java.lang.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 java.lang.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 © 2005-2010 Potix Corporation. All Rights Reserved.