API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. DefaultStyledDocument.AttributeUndoableEdit View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractUndoableEdit
          DefaultStyledDocument.AttributeUndoableEdit
Implements
Subclasses
Description
publicstatic class DefaultStyledDocument.AttributeUndoableEdit
An UndoableEdit used to remember AttributeSet changes to an Element.
See also:   
Constructors
public DefaultStyledDocument.AttributeUndoableEdit (Element element, AttributeSet newAttributes, boolean isReplacing)
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 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
protected AttributeSet copy
protected Element element
protected boolean isReplacing
protected AttributeSet newAttributes
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