|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.undo.AbstractUndoableEdit javax.swing.text.DefaultStyledDocument.StyleChangeUndoableEdit
UndoableEdit for changing the resolve parent of an Element.
Field Summary | |
protected AbstractDocument.AbstractElement |
element
Element to change resolve parent of. |
protected Style |
newStyle
New style. |
protected AttributeSet |
oldStyle
Old style, before setting newStyle. |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
Constructor Summary | |
DefaultStyledDocument.StyleChangeUndoableEdit(AbstractDocument.AbstractElement element,
Style newStyle)
|
Method Summary | |
void |
redo()
Redoes a change. |
void |
undo()
Undoes a change. |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AbstractDocument.AbstractElement element
protected Style newStyle
protected AttributeSet oldStyle
Constructor Detail |
public DefaultStyledDocument.StyleChangeUndoableEdit(AbstractDocument.AbstractElement element, Style newStyle)
Method Detail |
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class AbstractUndoableEdit
CannotRedoException
- if the change cannot be redoneAbstractUndoableEdit.canRedo()
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class AbstractUndoableEdit
CannotUndoException
- if the change cannot be undoneAbstractUndoableEdit.canUndo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |