| java.lang.Object | |
| ↳ | javax.swing.undo.AbstractUndoableEdit |
Known Direct Subclasses
|
Known Indirect Subclasses
|
An abstract implementation of UndoableEdit,
implementing simple responses to all boolean methods in
that interface.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | RedoName | String returned by getRedoPresentationName;
as of Java 2 platform v1.3.1 this field is no longer used. |
|||||||||
| String | UndoName | String returned by getUndoPresentationName;
as of Java 2 platform v1.3.1 this field is no longer used. |
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an
AbstractUndoableEdit which defaults
hasBeenDone and alive to true. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This default implementation returns false.
| |||||||||||
Returns
true if this edit is alive
and hasBeenDone is false. | |||||||||||
Returns true if this edit is
alive
and hasBeenDone is true. | |||||||||||
Sets
alive to false. | |||||||||||
This default implementation returns "".
| |||||||||||
Retreives the value from the defaults table with key
AbstractUndoableEdit.redoText and returns
that value followed by a space, followed by
getPresentationName. | |||||||||||
Retreives the value from the defaults table with key
AbstractUndoableEdit.undoText and returns
that value followed by a space, followed by
getPresentationName. | |||||||||||
This default implementation returns true.
| |||||||||||
Throws
CannotRedoException if canRedo
returns false. | |||||||||||
This default implementation returns false.
| |||||||||||
Returns a string that displays and identifies this
object's properties.
| |||||||||||
Throws
CannotUndoException if canUndo
returns false. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
javax.swing.undo.UndoableEdit
| |||||||||||
String returned by getRedoPresentationName;
as of Java 2 platform v1.3.1 this field is no longer used. This value
is now localized and comes from the defaults table with key
AbstractUndoableEdit.redoText.
String returned by getUndoPresentationName;
as of Java 2 platform v1.3.1 this field is no longer used. This value
is now localized and comes from the defaults table with key
AbstractUndoableEdit.undoText.
Creates an AbstractUndoableEdit which defaults
hasBeenDone and alive to true.
This default implementation returns false.
| anEdit | the edit to be added |
|---|
Sets alive to false. Note that this
is a one way operation; dead edits cannot be resurrected.
Sending undo or redo to
a dead edit results in an exception being thrown.
Typically an edit is killed when it is consolidated by
another edit's addEdit or replaceEdit
method, or when it is dequeued from an UndoManager.
This default implementation returns "". Used by
getUndoPresentationName and
getRedoPresentationName to
construct the strings they return. Subclasses should override to
return an appropriate description of the operation this edit
represents.
Retreives the value from the defaults table with key
AbstractUndoableEdit.redoText and returns
that value followed by a space, followed by
getPresentationName.
If getPresentationName returns "",
then the defaults value is returned alone.
AbstractUndoableEdit.redoText, followed
by a space, followed by getPresentationName
unless getPresentationName is "" in which
case, the defaults value is returned alone.Retreives the value from the defaults table with key
AbstractUndoableEdit.undoText and returns
that value followed by a space, followed by
getPresentationName.
If getPresentationName returns "",
then the defaults value is returned alone.
AbstractUndoableEdit.undoText, followed
by a space, followed by getPresentationName
unless getPresentationName is "" in which
case, the defaults value is returned alone.Throws CannotRedoException if canRedo
returns false. Sets hasBeenDone to true.
Subclasses should override to redo the operation represented by
this edit. Override should begin with a call to super.
| CannotRedoException | if canRedo
returns false |
|---|
This default implementation returns false.
| anEdit | the edit to replace |
|---|
Returns a string that displays and identifies this object's properties.
Throws CannotUndoException if canUndo
returns false. Sets hasBeenDone
to false. Subclasses should override to undo the
operation represented by this edit. Override should begin with
a call to super.
| CannotUndoException | if canUndo
returns false |
|---|