|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.view.faces.bi.component.gantt.UndoManager
public class UndoManager
The UndoManager manages a list of UndoableEdits. When an undoable action occurs (user pressed the zoom-in button for example), an UndoableEdit representing the action is registered with the UndoManager. When a user pressed the undo/redo button in the Gantt toolbar/menubar, the UndoManager is responsible for determining what the last/next UndoableEdit should be, so that the appropriate action can be taken to restore the state. Applications can provide their own UndoManager by extending this class and register it on the Gantt instance using the setUndoManager method.
Field Summary | |
---|---|
protected java.util.ArrayList<UndoableEdit> |
m_edits
|
Constructor Summary | |
---|---|
UndoManager()
Constructor to create an instance of UndoManager. |
Method Summary | |
---|---|
void |
addEdit(UndoableEdit edit)
Adds an UndoableEdit to UndoManager. |
boolean |
canRedo()
Determines whether redo is possible. |
boolean |
canUndo()
Determines whether undo is possible. |
UndoableEdit |
current()
Gets the current UndoableEdit |
void |
discardAllEdits()
Remove all UndoableEdits. |
protected int |
getUndoLimits()
The maximum number of undo(s)/redo(s). |
UndoableEdit |
redo()
Performs an redo action. |
UndoableEdit |
undo()
Performs an undo action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<UndoableEdit> m_edits
Constructor Detail |
---|
public UndoManager()
Method Detail |
---|
protected int getUndoLimits()
public boolean canUndo()
true
if undo is possible, false
otherwise.public boolean canRedo()
true
if redo is possible, false
otherwise.public void addEdit(UndoableEdit edit)
edit
- the UndoableEdit to register with the UndoManager.public UndoableEdit undo()
null
if no action needs to be taken.public UndoableEdit redo()
null
if no action needs to be taken.public void discardAllEdits()
public UndoableEdit current()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |