public class RUndoManager extends UndoManager
editsRedoName, UndoName| Constructor and Description |
|---|
RUndoManager(RTextArea textArea)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginInternalAtomicEdit()
Begins an "atomic" edit.
|
void |
endInternalAtomicEdit()
Ends an "atomic" edit.
|
String |
getCantRedoText()
Returns the localized "Can't Redo" string.
|
String |
getCantUndoText()
Returns the localized "Can't Undo" string.
|
void |
redo() |
void |
undo() |
void |
undoableEditHappened(UndoableEditEvent e) |
void |
updateActions()
Ensures that undo/redo actions are enabled appropriately and have
descriptive text at all times.
|
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoOrRedo, undoTodie, getPresentationName, isInProgress, isSignificant, lastEditreplaceEditpublic RUndoManager(RTextArea textArea)
textArea - The parent text area.public void beginInternalAtomicEdit()
endInternalAtomicEdit()public void endInternalAtomicEdit()
beginInternalAtomicEdit()public String getCantRedoText()
getCantUndoText()public String getCantUndoText()
getCantRedoText()public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class UndoManagerCannotRedoExceptionpublic void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class UndoManagerCannotUndoExceptionpublic void undoableEditHappened(UndoableEditEvent e)
undoableEditHappened in interface UndoableEditListenerundoableEditHappened in class UndoManagerpublic void updateActions()