|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended by javax.swing.undo.AbstractUndoableEdit extended by javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
public static class DefaultStyledDocument.AttributeUndoableEdit
An UndoableEdit used to remember AttributeSet changes to an Element.
| Field Summary | |
|---|---|
protected AttributeSet |
copy
|
protected Element |
element
|
protected boolean |
isReplacing
|
protected AttributeSet |
newAttributes
|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
DefaultStyledDocument.AttributeUndoableEdit(Element element,
AttributeSet newAttributes,
boolean isReplacing)
|
|
| 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 AttributeSet newAttributes
protected AttributeSet copy
protected boolean isReplacing
protected Element element
| Constructor Detail |
|---|
public DefaultStyledDocument.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
| Method Detail |
|---|
public void redo() throws CannotRedoException
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoException - if the change cannot be redoneAbstractUndoableEdit.canRedo()public void undo() throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoException - if the change cannot be undoneAbstractUndoableEdit.canUndo()
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.