javax.swing.undo
public interface UndoableEdit
| Method Summary | |
|---|---|
| boolean | addEdit(UndoableEdit edit)
Incorporates another editing action into this one, thus forming a
combined action.
|
| boolean | canRedo()
Determines whether it would be possible to redo this editing
action.
|
| boolean | canUndo()
Determines whether it would be possible to undo this editing
action.
|
| void | die()
Informs this edit action that it will no longer be used. |
| String | getPresentationName()
Returns a human-readable, localized name that describes this
editing action and can be displayed to the user.
|
| String | getRedoPresentationName()
Returns the redo presentation name.
|
| String | getUndoPresentationName()
Returns the undo presentation name.
|
| boolean | isSignificant()
Determines whether this editing action is significant enough for
being seperately undoable by the user. |
| void | redo()
Redoes this editing action.
|
| boolean | replaceEdit(UndoableEdit edit)
Incorporates another editing action into this one, thus forming a
combined action that replaces the argument action.
|
| void | undo()
Undoes this editing action.
|
Parameters: edit the editing action to be incorporated.
Returns: true if the edit was combined successfully, and
false if it could not be combined.
Returns: true to indicate that this action can be
redone, false otherwise.
Returns: true to indicate that this action can be
undone, false otherwise.
Returns: The presentation name.
Returns: The redo presentation name.
Returns: The undo presentation name.
Returns: true to indicate that the action is
significant enough for being separately undoable, or
false otherwise.
Throws: CannotRedoException if the edit cannot be undone.
Parameters: edit the editing action to be replaced.
Returns: true if the edit is successfully replaced, and
false otherwise.