JavaTM Platform
Standard Ed. 6

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
変更をやり直します。

定義:
インタフェース UndoableEdit 内の redo
オーバーライド:
クラス AbstractUndoableEdit 内の redo
例外:
CannotRedoException - 変更のやり直しができない場合
関連項目:
AbstractUndoableEdit.canRedo()

undo

public void undo()
          throws CannotUndoException
変更を元に戻します。

定義:
インタフェース UndoableEdit 内の undo
オーバーライド:
クラス AbstractUndoableEdit 内の undo
例外:
CannotUndoException - 変更を元に戻せない場合
関連項目:
AbstractUndoableEdit.canUndo()

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。