モジュール 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。
  • メソッドの詳細