Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.undo.AbstractUndoableEdit | +--com.sun.java.swing.undo.CompoundEdit | +--com.sun.java.swing.text.AbstractDocument.DefaultDocumentEvent
Fields inherited from class com.sun.java.swing.undo.CompoundEdit | |
edits |
Fields inherited from class com.sun.java.swing.undo.AbstractUndoableEdit | |
RedoName, UndoName |
Constructor Summary | |
AbstractDocument.DefaultDocumentEvent(AbstractDocument this$0,
int offs,
int len,
DocumentEvent.EventType type)
Constructs a change record. |
Method Summary | |
boolean | addEdit(UndoableEdit anEdit)
Adds a document edit. |
DocumentEvent.ElementChange | getChange(Element elem)
Gets the changes for an element. |
Document | getDocument()
Gets the document that sourced the change event. |
int | getLength()
Returns the length of the change. |
int | getOffset()
Returns the offset within the document of the start of the change. |
java.lang.String | getPresentationName()
Provides a localized, human readable description of this edit suitable for use in, say, a change log. |
java.lang.String | getRedoPresentationName()
Provides a localized, human readable description of the redoable form of this edit, e.g. for use as a Redo menu item. |
DocumentEvent.EventType | getType()
Returns the type of event. |
java.lang.String | getUndoPresentationName()
Provides a localized, human readable description of the undoable form of this edit, e.g. for use as an Undo menu item. |
boolean | isSignificant()
DefaultDocument events are significant. |
void | redo()
Redoes a change. |
java.lang.String | toString()
Returns a string description of the change event. |
void | undo()
Undoes a change. |
Methods inherited from class com.sun.java.swing.undo.CompoundEdit | |
addEdit, canRedo, canUndo, die, end, getPresentationName, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, lastEdit, redo, toString, undo |
Methods inherited from class com.sun.java.swing.undo.AbstractUndoableEdit | |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, toString, undo |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public AbstractDocument.DefaultDocumentEvent(AbstractDocument this$0, int offs, int len, DocumentEvent.EventType type)
offs
- the offset into the document of the change >= 0
len
- the length of the change >= 0
type
- the type of event (DocumentEvent.EventType)Method Detail |
public java.lang.String toString()
public boolean addEdit(UndoableEdit anEdit)
anEdit
- a document edit recordpublic void redo() throws CannotRedoException
public void undo() throws CannotUndoException
public boolean isSignificant()
public java.lang.String getPresentationName()
public java.lang.String getUndoPresentationName()
public java.lang.String getRedoPresentationName()
public DocumentEvent.EventType getType()
public int getOffset()
public int getLength()
public Document getDocument()
public DocumentEvent.ElementChange getChange(Element elem)
elem
- the elementOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |