java.lang.Object | ||
↳ | javax.swing.undo.AbstractUndoableEdit | |
↳ | javax.swing.undo.CompoundEdit |
Known Direct Subclasses |
A concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.undo.AbstractUndoableEdit
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
edits | The collection of UndoableEdit s
undone/redone en masse by this CompoundEdit . |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If this edit is
inProgress ,
accepts anEdit and returns true. | |||||||||||
Returns false if
isInProgress or if super
returns false. | |||||||||||
Returns false if
isInProgress or if super
returns false. | |||||||||||
Sends
die to each subedit,
in the reverse of the order that they were added. | |||||||||||
Sets
inProgress to false. | |||||||||||
Returns
getPresentationName from the
last UndoableEdit added to
edits . | |||||||||||
Returns
getRedoPresentationName
from the last UndoableEdit
added to edits . | |||||||||||
Returns
getUndoPresentationName
from the last UndoableEdit
added to edits . | |||||||||||
Returns true if this edit is in progress--that is, it has not
received end.
| |||||||||||
Returns true if any of the
UndoableEdit s
in edits do. | |||||||||||
Sends
redo to all contained
UndoableEdit s in the order in
which they were added. | |||||||||||
Returns a string that displays and identifies this
object's properties.
| |||||||||||
Sends
undo to all contained
UndoableEdits in the reverse of
the order in which they were added. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the last
UndoableEdit in
edits , or null
if edits is empty. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.undo.AbstractUndoableEdit
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
javax.swing.undo.UndoableEdit
|
The collection of UndoableEdit
s
undone/redone en masse by this CompoundEdit
.
If this edit is inProgress
,
accepts anEdit
and returns true.
The last edit added to this CompoundEdit
is given a chance to addEdit(anEdit)
.
If it refuses (returns false), anEdit
is
given a chance to replaceEdit
the last edit.
If anEdit
returns false here,
it is added to edits
.
anEdit | the edit to be added |
---|
inProgress
;
otherwise returns false
Returns false if isInProgress
or if super
returns false.
true
if this edit is alive
and hasBeenDone
is false
Returns false if isInProgress
or if super
returns false.
alive
and hasBeenDone
is true
Sends die
to each subedit,
in the reverse of the order that they were added.
Returns getPresentationName
from the
last UndoableEdit
added to
edits
. If edits
is empty,
calls super.
Returns getRedoPresentationName
from the last UndoableEdit
added to edits
.
If edits
is empty, calls super.
AbstractUndoableEdit.redoText
, followed
by a space, followed by getPresentationName
unless getPresentationName
is "" in which
case, the defaults value is returned alone.Returns getUndoPresentationName
from the last UndoableEdit
added to edits
.
If edits
is empty, calls super.
AbstractUndoableEdit.undoText
, followed
by a space, followed by getPresentationName
unless getPresentationName
is "" in which
case, the defaults value is returned alone.Returns true if this edit is in progress--that is, it has not received end. This generally means that edits are still being added to it.
Returns true if any of the UndoableEdit
s
in edits
do.
Returns false if they all return false.
Sends redo
to all contained
UndoableEdit
s in the order in
which they were added.
CannotRedoException |
---|
Returns a string that displays and identifies this object's properties.
Sends undo
to all contained
UndoableEdits
in the reverse of
the order in which they were added.
CannotUndoException |
---|
Returns the last UndoableEdit
in
edits
, or null
if edits
is empty.