javax.swing.text
public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
Field Summary | |
---|---|
protected AttributeSet | copy
A copy of the old attributes. |
protected Element | element
The element that has changed. |
protected boolean | isReplacing
If the new attributes replaced the old attributes or if they only were
added to them. |
protected AttributeSet | newAttributes
The new attributes. |
Constructor Summary | |
---|---|
AttributeUndoableEdit(Element el, AttributeSet newAtts, boolean replacing)
Creates a new AttributeUndoableEdit .
|
Method Summary | |
---|---|
void | redo()
Redos an attribute change. |
void | undo()
Undos the attribute change. |
AttributeUndoableEdit
.
Parameters: el the element that changes attributes newAtts the new attributes replacing if the new attributes replace the old or only append to them
newAttributes
to the
element
's attribute set, possibly clearing all attributes
if isReplacing
is true.copy
field is set as
attributes on element
.