クラス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 -
コンストラクタのサマリー
コンストラクタコンストラクタ説明AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing) AttributeUndoableEditを構築します。 -
メソッドのサマリー
クラスで宣言されたメソッド AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString修飾子と型メソッド説明booleanaddEdit(UndoableEdit anEdit) このデフォルト実装はfalseを返します。booleancanRedo()この編集結果がaliveであり、hasBeenDoneがfalseである場合にtrueを返します。booleancanUndo()この編集結果がaliveであり、hasBeenDoneがtrueである場合にtrueを返します。voiddie()aliveをfalseに設定します。このデフォルト実装は""を返します。キーAbstractUndoableEdit.redoTextを使用してデフォルト表から値を取得し、その値の後にスペース、getPresentationNameを返します。キーAbstractUndoableEdit.undoTextを使用してデフォルト表から値を取得し、その値の後にスペース、getPresentationNameを返します。booleanこのデフォルト実装はtrueを返します。booleanreplaceEdit(UndoableEdit anEdit) このデフォルト実装はfalseを返します。toString()このオブジェクトのプロパティを表示および識別する文字列を返します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(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。
-
-
メソッドの詳細
-
redo
public void redo() throws CannotRedoException変更をやり直します。- 定義:
redo、インタフェースUndoableEdit- オーバーライド:
redo、クラスAbstractUndoableEdit- スロー:
CannotRedoException- 変更のやり直しができない場合- 関連項目:
-
undo
public void undo() throws CannotUndoException変更を元に戻します。- 定義:
undo、インタフェースUndoableEdit- オーバーライド:
undo、クラスAbstractUndoableEdit- スロー:
CannotUndoException- 変更を元に戻せない場合- 関連項目:
-