public class RUndoManager extends UndoManager
edits
RedoName, 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, undoTo
die, getPresentationName, isInProgress, isSignificant, lastEdit
replaceEdit
public 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 UndoableEdit
redo
in class UndoManager
CannotRedoException
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class UndoManager
CannotUndoException
public void undoableEditHappened(UndoableEditEvent e)
undoableEditHappened
in interface UndoableEditListener
undoableEditHappened
in class UndoManager
public void updateActions()