|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Field Summary |
||
protected Vector<UndoableEdit> |
The collection of
UndoableEdit s
undone/redone en masse by this CompoundEdit . |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
Constructor Summary |
||
Constructs a CompoundEdit.
|
Method Summary |
||
boolean |
addEdit(UndoableEdit anEdit)
If this edit is
inProgress ,
accepts anEdit and returns true. |
|
boolean |
canRedo()
Returns false if
isInProgress or if super
returns false. |
|
boolean |
canUndo()
Returns false if
isInProgress or if super
returns false. |
|
void |
die()
Sends
die to each subedit,
in the reverse of the order that they were added. |
|
void |
end()
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 . |
||
boolean |
Returns true if this edit is in progress--that is, it has not
received end.
|
|
boolean |
Returns true if any of the
UndoableEdit s
in edits do. |
|
protected UndoableEdit |
lastEdit()
Returns the last
UndoableEdit in
edits , or null
if edits is empty. |
|
void |
redo()
Sends
redo to all contained
UndoableEdit s in the order in
which they were added. |
|
toString()
Returns a string that displays and identifies this
object's properties.
|
||
void |
undo()
Sends
undo to all contained
UndoableEdits in the reverse of
the order in which they were added. |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
Methods inherited from class java.lang.Object |
UndoableEdit
s
undone/redone en masse by this CompoundEdit
.public CompoundEdit |
() |
public void undo |
() |
throws |
undo
to all contained
UndoableEdits
in the reverse of
the order in which they were added.
public void redo |
() |
throws |
redo
to all contained
UndoableEdit
s in the order in
which they were added.
protected UndoableEdit lastEdit |
() |
UndoableEdit
in
edits
, or null
if edits
is empty.
public void die |
() |
die
to each subedit,
in the reverse of the order that they were added.
public boolean addEdit |
(UndoableEdit anEdit) |
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
.
inProgress
;
otherwise returns falsepublic void end |
() |
public boolean canUndo |
() |
isInProgress
or if super
returns false.
alive
and hasBeenDone
is true
public boolean canRedo |
() |
isInProgress
or if super
returns false.
true
if this edit is alive
and hasBeenDone
is false
public boolean isInProgress |
() |
public boolean isSignificant |
() |
UndoableEdit
s
in edits
do.
Returns false if they all return false.
public String getPresentationName |
() |
getPresentationName
from the
last UndoableEdit
added to
edits
. If edits
is empty,
calls super.
public String getUndoPresentationName |
() |
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.public String getRedoPresentationName |
() |
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.public String toString |
() |
|
FlexDoc/Javadoc 2.0 Demo Java Doc |