API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.undo. CompoundEdit View Source
Author(s)
Ray Ryan
Since
Version
1.26 11/17/05
Serial
Hierarchy
 Object
      AbstractUndoableEdit
          CompoundEdit
Implements
Subclasses
Description
public class CompoundEdit
A concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones.
See also:   
Constructors
public CompoundEdit ()
Methods
Hide/Show inherited methods
public boolean addEdit (UndoableEdit anEdit) [Overrides AbstractUndoableEdit]
  If this edit is inProgress, accepts anEdit and returns true.
public boolean canRedo () [Overrides AbstractUndoableEdit]
  Returns false if isInProgress or if super returns false.
public boolean canUndo () [Overrides AbstractUndoableEdit]
  Returns false if isInProgress or if super returns false.
public void die () [Overrides AbstractUndoableEdit]
Sends die to each subedit, in the reverse of the order that they were added.
public void end ()
  Sets inProgress to false.
public String getPresentationName () [Overrides AbstractUndoableEdit]
  Returns getPresentationName from the last UndoableEdit added to edits.
public String getRedoPresentationName () [Overrides AbstractUndoableEdit]
  Returns getRedoPresentationName from the last UndoableEdit added to edits.
public String getUndoPresentationName () [Overrides AbstractUndoableEdit]
  Returns getUndoPresentationName from the last UndoableEdit added to edits.
public boolean isInProgress ()
  Returns true if this edit is in progress--that is, it has not received end.
public boolean isSignificant () [Overrides AbstractUndoableEdit]
  Returns true if any of the UndoableEdits in edits do.
protected UndoableEdit lastEdit ()
Returns the last UndoableEdit in edits, or null if edits is empty.
public void redo () throws CannotRedoException [Overrides AbstractUndoableEdit]
Sends redo to all contained UndoableEdits in the order in which they were added.
public boolean replaceEdit (UndoableEdit anEdit) [Inherited From AbstractUndoableEdit]
  This default implementation returns false.
public String toString () [Overrides AbstractUndoableEdit]
  Returns a string that displays and identifies this object's properties.
public void undo () throws CannotUndoException [Overrides AbstractUndoableEdit]
Sends undo to all contained UndoableEdits in the reverse of the order in which they were added.
Fields
Hide/Show inherited fields
pack-private boolean alive [Inherited From AbstractUndoableEdit]
True if this edit has not received die; defaults to true.
protected Vector<UndoableEdit> edits
The collection of UndoableEdits undone/redone en masse by this CompoundEdit.
pack-private boolean hasBeenDone [Inherited From AbstractUndoableEdit]
Defaults to true; becomes false if this edit is undone, true again if it is redone.
pack-private boolean inProgress
True if this edit has never received end.
protectedfinalstatic String RedoName = "Redo" [Inherited From AbstractUndoableEdit]
  String returned by getRedoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.
protectedfinalstatic String UndoName = "Undo" [Inherited From AbstractUndoableEdit]
  String returned by getUndoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar