Package Summary  Overview Summary

class:DefaultStyledDocument.AttributeUndoableEdit [NONE]

All Implemented Interfaces:
Serializable, UndoableEdit
Enclosing class:
DefaultStyledDocument

public static class DefaultStyledDocument.AttributeUndoableEdit
extends AbstractUndoableEdit
An UndoableEdit used to remember AttributeSet changes to an Element.

field:newAttributes [NONE]

  • newAttributes

    protected AttributeSet newAttributes
    AttributeSet containing additional entries, must be non-mutable!
  • field:copy [NONE]

    copy

    protected AttributeSet copy
    Copy of the AttributeSet the Element contained.

    field:isReplacing [NONE]

    isReplacing

    protected boolean isReplacing
    true if all the attributes in the element were removed first.

    field:element [NONE]

    element

    protected Element element
    Affected Element.

    constructor:DefaultStyledDocument.AttributeUndoableEdit(javax.swing.text.Element,javax.swing.text.AttributeSet,boolean) [NONE]

    • AttributeUndoableEdit

      public AttributeUndoableEdit?(Element element, AttributeSet newAttributes, boolean isReplacing)
      Constructs an AttributeUndoableEdit.
      Parameters:
      element - the element
      newAttributes - the new attributes
      isReplacing - true if all the attributes in the element were removed first.

    method:redo() [NONE]

  • redo

    public void redo() throws CannotRedoException
    Redoes a change.
    Specified by:
    redo in interface UndoableEdit
    Overrides:
    redo in class AbstractUndoableEdit
    Throws:
    CannotRedoException - if the change cannot be redone
    See Also:
    AbstractUndoableEdit.canRedo()
  • method:undo() [NONE]

    undo

    public void undo() throws CannotUndoException
    Undoes a change.
    Specified by:
    undo in interface UndoableEdit
    Overrides:
    undo in class AbstractUndoableEdit
    Throws:
    CannotUndoException - if the change cannot be undone
    See Also:
    AbstractUndoableEdit.canUndo()

    © 2021 Oracle Corporation and/or its affiliates