API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. AbstractDocument.ElementEdit View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractUndoableEdit
          AbstractDocument.ElementEdit
Implements
 DocumentEvent.ElementChange
Subclasses
Description
publicstatic class AbstractDocument.ElementEdit
An implementation of ElementChange that can be added to the document event.
See also:   
Constructors
public AbstractDocument.ElementEdit (Element e, int index, Element removed, Element added)
  Constructs an edit record.
Methods
Hide/Show inherited methods
public boolean addEdit (UndoableEdit anEdit) [Inherited From AbstractUndoableEdit]
  This default implementation returns false.
public boolean canRedo () [Inherited From AbstractUndoableEdit]
  Returns true if this edit is alive and hasBeenDone is false.
public boolean canUndo () [Inherited From AbstractUndoableEdit]
  Returns true if this edit is alive and hasBeenDone is true.
public void die () [Inherited From AbstractUndoableEdit]
  Sets alive to false.
public Element getChildrenAdded () [Specified in DocumentEvent.ElementChange]
  Gets a list of children that were added.
public Element getChildrenRemoved () [Specified in DocumentEvent.ElementChange]
  Gets a list of children that were removed.
public Element getElement () [Specified in DocumentEvent.ElementChange]
  Returns the underlying element.
public int getIndex () [Specified in DocumentEvent.ElementChange]
  Returns the index into the list of elements.
public String getPresentationName () [Inherited From AbstractUndoableEdit]
  This default implementation returns "".
public String getRedoPresentationName () [Inherited From AbstractUndoableEdit]
  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 () [Inherited From AbstractUndoableEdit]
  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 () [Inherited From AbstractUndoableEdit]
  This default implementation returns true.
public void redo () throws CannotRedoException [Overrides AbstractUndoableEdit]
  Redoes a change.
public boolean replaceEdit (UndoableEdit anEdit) [Inherited From AbstractUndoableEdit]
  This default implementation returns false.
public String toString () [Inherited From AbstractUndoableEdit]
  Returns a string that displays and identifies this object's properties.
public void undo () throws CannotUndoException [Overrides AbstractUndoableEdit]
  Undoes a change.
Fields
Hide/Show inherited fields
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