モジュール java.desktop
パッケージ javax.swing.text

クラスDefaultStyledDocument.AttributeUndoableEdit

java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
すべての実装されたインタフェース:
Serializable, UndoableEdit
含まれているクラス:
DefaultStyledDocument

public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
UndoableEditは、ElementのAttributeSetに加えられた変更を記憶するために使います。
  • フィールド詳細

    • newAttributes

      protected AttributeSet newAttributes
      追加エントリを含むAttributeSetは、変更不可である必要があります。
    • copy

      protected AttributeSet copy
      含まれている要素AttributeSetのコピー。
    • isReplacing

      protected boolean isReplacing
      要素内のすべての属性が最初に削除された場合はtrue。
    • element

      protected Element element
      影響を受けるエレメント。
  • コンストラクタの詳細

    • AttributeUndoableEdit

      public AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
      AttributeUndoableEditを構築します。
      パラメータ:
      element - 要素
      newAttributes - 新しい属性
      isReplacing - 要素内のすべての属性が最初に削除された場合はtrue。
  • メソッドの詳細