public static class

DefaultStyledDocument.AttributeUndoableEdit

extends AbstractUndoableEdit
java.lang.Object
   ↳ javax.swing.undo.AbstractUndoableEdit
     ↳ javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit

Class Overview

An UndoableEdit used to remember AttributeSet changes to an Element.

Summary

[Expand]
Inherited Constants
From class javax.swing.undo.AbstractUndoableEdit
Fields
protected AttributeSet copy
protected Element element
protected boolean isReplacing
protected AttributeSet newAttributes
Public Constructors
DefaultStyledDocument.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
Public Methods
void redo()
Redoes a change.
void undo()
Undoes a change.
[Expand]
Inherited Methods
From class javax.swing.undo.AbstractUndoableEdit
From class java.lang.Object
From interface javax.swing.undo.UndoableEdit

Fields

protected AttributeSet copy

protected Element element

protected boolean isReplacing

protected AttributeSet newAttributes

Public Constructors

public DefaultStyledDocument.AttributeUndoableEdit (Element element, AttributeSet newAttributes, boolean isReplacing)

Public Methods

public void redo ()

Redoes a change.

Throws
CannotRedoException if the change cannot be redone

public void undo ()

Undoes a change.

Throws
CannotUndoException if the change cannot be undone