API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. AbstractDocument.DefaultDocumentEvent View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractUndoableEdit
          CompoundEdit
              AbstractDocument.DefaultDocumentEvent
Implements
 DocumentEvent
Subclasses
Description
public class AbstractDocument.DefaultDocumentEvent
  Stores document changes as the document is being modified.
See also:   
Constructors
public AbstractDocument.DefaultDocumentEvent (int offs, int len, EventType type)
  Constructs a change record.
Methods
Hide/Show inherited methods
public boolean addEdit (UndoableEdit anEdit) [Overrides CompoundEdit]
  Adds a document edit.
public boolean canRedo () [Inherited From CompoundEdit]
  Returns false if isInProgress or if super returns false.
public boolean canUndo () [Inherited From CompoundEdit]
  Returns false if isInProgress or if super returns false.
public void die () [Inherited From CompoundEdit]
Sends die to each subedit, in the reverse of the order that they were added.
public void end () [Inherited From CompoundEdit]
  Sets inProgress to false.
public ElementChange getChange (Element elem) [Specified in DocumentEvent]
  Gets the changes for an element.
public Document getDocument () [Specified in DocumentEvent]
  Gets the document that sourced the change event.
public int getLength () [Specified in DocumentEvent]
  Returns the length of the change.
public int getOffset () [Specified in DocumentEvent]
  Returns the offset within the document of the start of the change.
public String getPresentationName () [Overrides CompoundEdit]
  Provides a localized, human readable description of this edit suitable for use in, say, a change log.
public String getRedoPresentationName () [Overrides CompoundEdit]
  Provides a localized, human readable description of the redoable form of this edit, e.g.
public EventType getType () [Specified in DocumentEvent]
  Returns the type of event.
public String getUndoPresentationName () [Overrides CompoundEdit]
  Provides a localized, human readable description of the undoable form of this edit, e.g.
public boolean isInProgress () [Inherited From CompoundEdit]
  Returns true if this edit is in progress--that is, it has not received end.
public boolean isSignificant () [Overrides CompoundEdit]
  DefaultDocument events are significant.
protected UndoableEdit lastEdit () [Inherited From CompoundEdit]
Returns the last UndoableEdit in edits, or null if edits is empty.
public void redo () throws CannotRedoException [Overrides CompoundEdit]
  Redoes a change.
public boolean replaceEdit (UndoableEdit anEdit) [Inherited From AbstractUndoableEdit]
  This default implementation returns false.
public String toString () [Overrides CompoundEdit]
  Returns a string description of the change event.
public void undo () throws CannotUndoException [Overrides CompoundEdit]
  Undoes a change.
Fields
Hide/Show inherited fields
protected Vector<UndoableEdit> edits [Inherited From CompoundEdit]
The collection of UndoableEdits undone/redone en masse by this CompoundEdit.
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