UndoableEdit,
implementing simple responses to all boolean methods in
that interface.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | alive
True if this edit has not received |
| pack-priv boolean | hasBeenDone
Defaults to true; becomes false if this edit is undone, true again if it is redone. |
| protected static final String | RedoName
String returned by |
| protected static final String | UndoName
String returned by |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: falsethe edit to be added anEdit)Implements javax. This default implementation returns false. |
| public boolean | Returns: true if this edit is alive
and hasBeenDone is falseImplements javax. Returns |
| public boolean | Returns: true if this edit isalive
and hasBeenDone is trueImplements javax. Returns true if this edit is |
| public void | |
| public String | Returns: the empty string ""Implements javax. This default implementation returns "". |
| public String | Returns: the value from the defaults table with keyAbstractUndoableEdit.redoText, followed
by a space, followed by getPresentationName
unless getPresentationName is "" in which
case, the defaults value is returned alone.Implements javax. Retrieves the value from the defaults table with key
|
| public String | Returns: the value from the defaults table with keyAbstractUndoableEdit.undoText, followed
by a space, followed by getPresentationName
unless getPresentationName is "" in which
case, the defaults value is returned alone.Implements javax. Retrieves the value from the defaults table with key
|
| public boolean | Returns: trueImplements javax. This default implementation returns true. |
| public void | redo()
Implements javax. Throws |
| public boolean | Returns: falsethe edit to replace anEdit)Implements javax. This default implementation returns false. |
| public String | Returns: a String representation of this objectOverrides java. Returns a string that displays and identifies this object's properties. |
| public void | undo()
Implements javax. Throws |
| alive | back to summary |
|---|---|
| pack-priv boolean alive True if this edit has not received | |
| hasBeenDone | back to summary |
|---|---|
| pack-priv boolean hasBeenDone Defaults to true; becomes false if this edit is undone, true again if it is redone. | |
| RedoName | back to summary |
|---|---|
| protected static final String RedoName String returned by
| |
| UndoName | back to summary |
|---|---|
| protected static final String UndoName String returned by
| |
| AbstractUndoableEdit | back to summary |
|---|---|
| public AbstractUndoableEdit() Creates an | |
| addEdit | back to summary |
|---|---|
| public boolean addEdit(UndoableEdit anEdit) Implements javax. This default implementation returns false.
| |
| canRedo | back to summary |
|---|---|
| public boolean canRedo() Implements javax. Returns | |
| canUndo | back to summary |
|---|---|
| public boolean canUndo() Implements javax. Returns true if this edit is | |
| die | back to summary |
|---|---|
| public void die() Implements javax. Sets Typically an edit is killed when it is consolidated by
another edit's | |
| getPresentationName | back to summary |
|---|---|
| public String getPresentationName() Implements javax. This default implementation returns "". Used by
| |
| getRedoPresentationName | back to summary |
|---|---|
| public String getRedoPresentationName() Implements javax. Retrieves the value from the defaults table with key
| |
| getUndoPresentationName | back to summary |
|---|---|
| public String getUndoPresentationName() Implements javax. Retrieves the value from the defaults table with key
| |
| isSignificant | back to summary |
|---|---|
| public boolean isSignificant() Implements javax. This default implementation returns true.
| |
| redo | back to summary |
|---|---|
| public void redo() throws CannotRedoException Implements javax. Throws
| |
| replaceEdit | back to summary |
|---|---|
| public boolean replaceEdit(UndoableEdit anEdit) Implements javax. This default implementation returns false.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string that displays and identifies this object's properties.
| |
| undo | back to summary |
|---|---|
| public void undo() throws CannotUndoException Implements javax. Throws
| |