API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.undo. AbstractUndoableEdit View Source
Author(s)
Ray Ryan
Since
Version
1.31 04/07/06
Serial
Hierarchy
 Object
      AbstractUndoableEdit
Implements
 UndoableEdit
 Serializable
Subclasses
Description
public class AbstractUndoableEdit
An abstract implementation of UndoableEdit, implementing simple responses to all boolean methods in that interface.
See also:   
Constructors
public AbstractUndoableEdit ()
Creates an AbstractUndoableEdit which defaults hasBeenDone and alive to true.
Methods
Hide/Show inherited methods
public boolean addEdit (UndoableEdit anEdit) [Specified in UndoableEdit]
  This default implementation returns false.
public boolean canRedo () [Specified in UndoableEdit]
  Returns true if this edit is alive and hasBeenDone is false.
public boolean canUndo () [Specified in UndoableEdit]
  Returns true if this edit is alive and hasBeenDone is true.
public void die () [Specified in UndoableEdit]
  Sets alive to false.
public String getPresentationName () [Specified in UndoableEdit]
  This default implementation returns "".
public String getRedoPresentationName () [Specified in UndoableEdit]
  Retreives the value from the defaults table with key AbstractUndoableEdit.redoText and returns that value followed by a space, followed by getPresentationName.
public String getUndoPresentationName () [Specified in UndoableEdit]
  Retreives the value from the defaults table with key AbstractUndoableEdit.undoText and returns that value followed by a space, followed by getPresentationName.
public boolean isSignificant () [Specified in UndoableEdit]
  This default implementation returns true.
public void redo () throws CannotRedoException [Specified in UndoableEdit]
  Throws CannotRedoException if canRedo returns false.
public boolean replaceEdit (UndoableEdit anEdit) [Specified in UndoableEdit]
  This default implementation returns false.
public String toString ()
  Returns a string that displays and identifies this object's properties.
public void undo () throws CannotUndoException [Specified in UndoableEdit]
  Throws CannotUndoException if canUndo returns false.
Fields
Hide/Show inherited fields
pack-private boolean alive
True if this edit has not received die; defaults to true.
pack-private boolean hasBeenDone
Defaults to true; becomes false if this edit is undone, true again if it is redone.
protectedfinalstatic String RedoName = "Redo"
  String returned by getRedoPresentationName; as of Java 2 platform v1.3.1 this field is no longer used.
protectedfinalstatic String UndoName = "Undo"
  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