クラス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に加えられた変更を記憶するために使います。
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    protected AttributeSet
    含まれている要素AttributeSetのコピー。
    protected Element
    影響を受けるエレメント。
    protected boolean
    要素内のすべての属性が最初に削除された場合はtrue。
    protected AttributeSet
    追加エントリを含むAttributeSetは、変更不可である必要があります。

    クラスで宣言されたフィールド AbstractUndoableEdit

    RedoName, UndoName
    修飾子と型
    フィールド
    説明
    protected static final String
    getRedoPresentationNameによって返される文字列です。Java 2プラットフォーム1.3.1以降では、このフィールドは使われなくなりました。
    protected static final String
    getUndoPresentationNameによって返される文字列です。Java 2プラットフォーム1.3.1以降では、このフィールドは使われなくなりました。
  • コンストラクタのサマリー

    コンストラクタ
    コンストラクタ
    説明
    AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
    AttributeUndoableEditを構築します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    変更をやり直します。
    void
    変更を元に戻します。

    クラスで宣言されたメソッド AbstractUndoableEdit

    addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
    修飾子と型
    メソッド
    説明
    boolean
    このデフォルト実装はfalseを返します。
    boolean
    この編集結果がaliveであり、hasBeenDonefalseである場合にtrueを返します。
    boolean
    この編集結果がaliveであり、hasBeenDonetrueである場合にtrueを返します。
    void
    die()
    aliveをfalseに設定します。
    このデフォルト実装は""を返します。
    キーAbstractUndoableEdit.redoTextを使用してデフォルト表から値を取得し、その値の後にスペース、getPresentationNameを返します。
    キーAbstractUndoableEdit.undoTextを使用してデフォルト表から値を取得し、その値の後にスペース、getPresentationNameを返します。
    boolean
    このデフォルト実装はtrueを返します。
    boolean
    このデフォルト実装はfalseを返します。
    このオブジェクトのプロパティを表示および識別する文字列を返します。

    クラスオブジェクトで宣言されたメソッド

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    修飾子と型
    メソッド
    説明
    protected Object
    このオブジェクトのコピーを作成して、返します。
    boolean
    このオブジェクトと他のオブジェクトが等しいかどうかを示します。
    protected void
    削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。
    最終決定は非推奨であり、将来のリリースで削除される可能性があります。
    final Class<?>
    このObjectの実行時クラスを返します。
    int
    このオブジェクトに対するハッシュ・コード値を返します。
    final void
    このオブジェクトのモニターで待機中のスレッドを1つ再開します。
    final void
    このオブジェクトのモニターで待機中のすべてのスレッドを再開します。
    final void
    現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。
    final void
    wait(long timeoutMillis)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
    final void
    wait(long timeoutMillis, int nanos)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
  • フィールド詳細

    • 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。
  • メソッドの詳細