Java プラットフォーム 1.2

javax.swing.text
クラス DefaultStyledDocument.AttributeUndoableEdit

java.lang.Object
  |
  +--javax.swing.undo.AbstractUndoableEdit
        |
        +--javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit

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
変更を再び実行します。
例外:
CannotRedoException - 変更を再び実行できない場合
オーバーライド:
クラス AbstractUndoableEdit 内の redo

undo

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

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.