JavaTM 2 Platform
Std. Ed. v1.3

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 に加えられた変更を記憶するために使います。

関連項目:
直列化された形式

フィールドの概要
protected  AttributeSet copy
           
protected  Element element
           
protected  boolean isReplacing
           
protected  AttributeSet newAttributes
           
 
クラス javax.swing.undo.AbstractUndoableEdit から継承したフィールド
RedoName, UndoName
 
コンストラクタの概要
DefaultStyledDocument.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
           
 
メソッドの概要
 void redo()
          変更を再び実行します。
 void undo()
          変更を元に戻します。
 
クラス javax.swing.undo.AbstractUndoableEdit から継承したメソッド
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

newAttributes

protected AttributeSet newAttributes

copy

protected AttributeSet copy

isReplacing

protected boolean isReplacing

element

protected Element element
コンストラクタの詳細

DefaultStyledDocument.AttributeUndoableEdit

public DefaultStyledDocument.AttributeUndoableEdit(Element element,
                                                   AttributeSet newAttributes,
                                                   boolean isReplacing)
メソッドの詳細

redo

public void redo()
          throws CannotRedoException
変更を再び実行します。
オーバーライド:
クラス AbstractUndoableEdit 内の redo
例外:
CannotRedoException - 変更を再び実行できない場合

undo

public void undo()
          throws CannotUndoException
変更を元に戻します。
オーバーライド:
クラス AbstractUndoableEdit 内の undo
例外:
CannotUndoException - 変更を元に戻せない場合

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.