|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.edit.selection.UndoManager
public final class UndoManager
This class implements an undo manager.
Constructor Summary | |
---|---|
UndoManager(int size)
Create an undo/redo manager. |
Method Summary | |
---|---|
void |
add(IAction action)
Add an action to the undo list. |
void |
clear()
Clear the undo and redo lists. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
redo()
Redo the last undone action. |
void |
skip()
Skip the next merge. |
void |
undo()
Undo the last action. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoManager(int size)
size
- the size of the undo stack.Method Detail |
---|
public void undo()
public void redo()
public void add(IAction action)
action
- the actionpublic void clear()
public void marshall(java.io.OutputStream stream)
marshall
in interface ISerializable
stream
- the stream to write topublic void unmarshall(java.io.InputStream stream)
unmarshall
in interface ISerializable
stream
- the stream to read frompublic void skip()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |