public class RUndoManager
extends javax.swing.undo.UndoManager
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.
|
java.lang.String |
getCantRedoText()
Returns the localized "Can't Redo" string.
|
java.lang.String |
getCantUndoText()
Returns the localized "Can't Undo" string.
|
void |
redo() |
void |
undo() |
void |
undoableEditHappened(javax.swing.event.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
public RUndoManager(RTextArea textArea)
textArea
- The parent text area.public void beginInternalAtomicEdit()
endInternalAtomicEdit()
public void endInternalAtomicEdit()
beginInternalAtomicEdit()
public java.lang.String getCantRedoText()
getCantUndoText()
public java.lang.String getCantUndoText()
getCantRedoText()
public void redo()
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.UndoManager
public void undo()
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.UndoManager
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
undoableEditHappened
in class javax.swing.undo.UndoManager
public void updateActions()