Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.undo.AbstractUndoableEdit | +--com.sun.java.swing.undo.CompoundEdit
Field Summary | |
java.util.Vector | edits
The collection of UndoableEdits undone/redone en masse by this CompoundEdit |
Fields inherited from class com.sun.java.swing.undo.AbstractUndoableEdit | |
RedoName, UndoName |
Constructor Summary | |
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 does. |
boolean | canUndo()
Returns false if isInProgress or if super does. |
void | die()
Send die to each subedit, in the reverse of the order that they were added |
void | end()
Sets inProgress to false. |
java.lang.String | getPresentationName()
Returns getPresentationName from the last UndoableEdit added to edits. |
java.lang.String | getRedoPresentationName()
Returns getRedoPresentationName from the last UndoableEdit added to edits. |
java.lang.String | getUndoPresentationName()
Returns getUndoPresentationName from the last UndoableEdit added to edits. |
boolean | isInProgress()
Returns true if this edit is in progress--that is, it has not received end. |
boolean | isSignificant()
Returns true if any of the UndoableEdits in edits do. |
UndoableEdit | lastEdit()
Returns the last UndoableEdit in edits, or null if edits is empty |
void | redo()
Sends redo() to all contained UndoableEdits in the order in which they were added. |
java.lang.String | toString()
|
void | undo()
Sends undo() to all contained UndoableEdits in the reverse of the order in which they were added. |
Methods inherited from class com.sun.java.swing.undo.AbstractUndoableEdit | |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, toString, undo |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector edits
Constructor Detail |
public CompoundEdit()
Method Detail |
public void undo() throws CannotUndoException
public void redo() throws CannotRedoException
protected UndoableEdit lastEdit()
public void die()
public boolean addEdit(UndoableEdit anEdit)
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.
public void end()
public boolean canUndo()
public boolean canRedo()
public boolean isInProgress()
public boolean isSignificant()
public java.lang.String getPresentationName()
public java.lang.String getUndoPresentationName()
public java.lang.String getRedoPresentationName()
public java.lang.String toString()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |