javax.swing.undo
9 classes of the module java.desktop.
Load them with:
using {
"javax.swing.undo"
}
AbstractUndoableEdit#
class · extends Object · javax.swing.undo.AbstractUndoableEdit
Implements: UndoableEdit, Serializable
Constructors
new AbstractUndoableEdit() |
Ring: new AbstractUndoableEdit(args) uses the constructor with the fewest parameters (at least one); new AbstractUndoableEdit makes the object with the constructor without parameters; the others: (new AbstractUndoableEdit).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addEdit | addEdit(anEdit) | boolean addEdit(UndoableEdit anEdit) |
canRedo | canRedo() | boolean canRedo() |
canUndo | canUndo() | boolean canUndo() |
die | die() | void die() |
getPresentationName | getPresentationName() | String getPresentationName() |
getRedoPresentationName | getRedoPresentationName() | String getRedoPresentationName() |
getUndoPresentationName | getUndoPresentationName() | String getUndoPresentationName() |
isSignificant | isSignificant() | boolean isSignificant() |
redo | redo() | void redo() |
replaceEdit | replaceEdit(anEdit) | boolean replaceEdit(UndoableEdit anEdit) |
undo | undo() | void undo() |
The methods and fields of Object are inherited.
CannotRedoException#
class · extends RuntimeException · javax.swing.undo.CannotRedoException
Constructors
new CannotRedoException() |
Ring: new CannotRedoException(args) uses the constructor with the fewest parameters (at least one); new CannotRedoException makes the object with the constructor without parameters; the others: (new CannotRedoException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
CannotUndoException#
class · extends RuntimeException · javax.swing.undo.CannotUndoException
Constructors
new CannotUndoException() |
Ring: new CannotUndoException(args) uses the constructor with the fewest parameters (at least one); new CannotUndoException makes the object with the constructor without parameters; the others: (new CannotUndoException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
CompoundEdit#
class · extends AbstractUndoableEdit · javax.swing.undo.CompoundEdit
Constructors
new CompoundEdit() |
Ring: new CompoundEdit(args) uses the constructor with the fewest parameters (at least one); new CompoundEdit makes the object with the constructor without parameters; the others: (new CompoundEdit).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@end | @end() | void end() |
isInProgress | isInProgress() | boolean isInProgress() |
The methods and fields of AbstractUndoableEdit are inherited.
StateEdit#
class · extends AbstractUndoableEdit · javax.swing.undo.StateEdit
Constructors
new StateEdit(StateEditable anObject) |
new StateEdit(StateEditable anObject, String name) |
Ring: new StateEdit(args) uses the constructor with the fewest parameters (at least one); new StateEdit makes the object with the constructor without parameters; the others: (new StateEdit).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@end | @end() | void end() |
The methods and fields of AbstractUndoableEdit are inherited.
StateEditable#
interface · javax.swing.undo.StateEditable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RCSID | String | constant · static | o.RCSID |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
restoreState | restoreState(state) | void restoreState(Hashtable state) |
storeState | storeState(state) | void storeState(Hashtable state) |
UndoableEdit#
interface · javax.swing.undo.UndoableEdit
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addEdit | addEdit(anEdit) | boolean addEdit(UndoableEdit anEdit) |
canRedo | canRedo() | boolean canRedo() |
canUndo | canUndo() | boolean canUndo() |
die | die() | void die() |
getPresentationName | getPresentationName() | String getPresentationName() |
getRedoPresentationName | getRedoPresentationName() | String getRedoPresentationName() |
getUndoPresentationName | getUndoPresentationName() | String getUndoPresentationName() |
isSignificant | isSignificant() | boolean isSignificant() |
redo | redo() | void redo() |
replaceEdit | replaceEdit(anEdit) | boolean replaceEdit(UndoableEdit anEdit) |
undo | undo() | void undo() |
UndoableEditSupport#
class · extends Object · javax.swing.undo.UndoableEditSupport
Constructors
new UndoableEditSupport() |
new UndoableEditSupport(Object r) |
Ring: new UndoableEditSupport(args) uses the constructor with the fewest parameters (at least one); new UndoableEditSupport makes the object with the constructor without parameters; the others: (new UndoableEditSupport).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addUndoableEditListener | addUndoableEditListener(l) | void addUndoableEditListener(UndoableEditListener l) |
beginUpdate | beginUpdate() | void beginUpdate() |
endUpdate | endUpdate() | void endUpdate() |
getUndoableEditListeners | getUndoableEditListeners() | UndoableEditListener[] getUndoableEditListeners() |
getUpdateLevel | getUpdateLevel() | int getUpdateLevel() |
postEdit | postEdit(e) | void postEdit(UndoableEdit e) |
removeUndoableEditListener | removeUndoableEditListener(l) | void removeUndoableEditListener(UndoableEditListener l) |
The methods and fields of Object are inherited.
UndoManager#
class · extends CompoundEdit · javax.swing.undo.UndoManager
Implements: UndoableEditListener
Constructors
new UndoManager() |
Ring: new UndoManager(args) uses the constructor with the fewest parameters (at least one); new UndoManager makes the object with the constructor without parameters; the others: (new UndoManager).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
canUndoOrRedo | canUndoOrRedo() | boolean canUndoOrRedo() |
discardAllEdits | discardAllEdits() | void discardAllEdits() |
getLimit | getLimit() | int getLimit() |
getUndoOrRedoPresentationName | getUndoOrRedoPresentationName() | String getUndoOrRedoPresentationName() |
setLimit | setLimit(l) | void setLimit(int l) |
undoableEditHappened | undoableEditHappened(e) | void undoableEditHappened(UndoableEditEvent e) |
undoOrRedo | undoOrRedo() | void undoOrRedo() |
The methods and fields of CompoundEdit are inherited.