JavaTM 2 Platform
Std. Ed. v1.3

インタフェース
javax.swing.event.DocumentEvent の使用

DocumentEvent を使用しているパッケージ
javax.swing.event Swing コンポーネントによってトリガーされるイベントを提供します。 
javax.swing.text 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。  
 

javax.swing.event での DocumentEvent の使用
 

DocumentEvent 型のパラメータを持つ javax.swing.event のメソッド
 void DocumentListener.insertUpdate(DocumentEvent e)
          ドキュメントへの挿入があったことを通知します。
 void DocumentListener.removeUpdate(DocumentEvent e)
          ドキュメントの一部が削除されたことを通知します。
 void DocumentListener.changedUpdate(DocumentEvent e)
          属性または属性セットが変更されたことを通知します。
 

javax.swing.text での DocumentEvent の使用
 

DocumentEvent を実装している javax.swing.text のクラス
 class AbstractDocument.DefaultDocumentEvent
          ドキュメントが変更されるときに、変更を格納します。
 

DocumentEvent 型のパラメータを持つ javax.swing.text のメソッド
 void JTextComponent.AccessibleJTextComponent.insertUpdate(DocumentEvent e)
          ドキュメントの挿入を処理します (AccessibleContext.ACCESSIBLE_TEXT_PROPERTY という適切なプロパティ変更イベントをトリガーする)。
 void JTextComponent.AccessibleJTextComponent.removeUpdate(DocumentEvent e)
          ドキュメントの削除を処理します (AccessibleContext.ACCESSIBLE_TEXT_PROPERTY という適切なプロパティ変更イベントをトリガーする)。
 void JTextComponent.AccessibleJTextComponent.changedUpdate(DocumentEvent e)
          ドキュメントの削除を処理します (AccessibleContext.ACCESSIBLE_TEXT_PROPERTY という適切なプロパティ変更イベントをトリガーする)。
 void View.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。
 void View.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントから何かが削除されたことを通知します。
 void View.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントの属性が変更されたことを通知します。
protected  boolean View.updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f)
          モデルが変更されたという通知を受け取ると、子ビューを更新します。
protected  void View.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)
          指定された DocumentEvent をモデルの変更通知が必要な子ビューに転送します。
protected  void View.forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f)
          指定された子ビューに DocumentEvent を転送します。
protected  void View.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a)
          モデルから変更の通知を受け取った場合に、レイアウトを更新します。
 void GlyphView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが担当する範囲でドキュメントに何かが挿入されたことを通知します。
 void GlyphView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが担当する範囲でドキュメントから何かが削除されたことを通知します。
 void GlyphView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが担当する範囲で属性が変更されたことをドキュメントから通知します。
 void LabelView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが受け持つ位置で属性が変更されたことをドキュメントから通知します。
protected  void BoxView.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)
          指定された DocumentEvent をそのモデルへの変更の通知が必要な子ビューに転送します。
 void FlowView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当する位置でドキュメントに何かが挿入されたことを通知します。
 void FlowView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。
 void FlowView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当する位置で属性が変更されたことをドキュメントから通知します。
 void ParagraphView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが扱う位置で属性が変更されたことをドキュメントから通知します。
 void PlainView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。
 void PlainView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。
 void PlainView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが扱う位置で属性が変更されたことをドキュメントから通知します。
 void FieldView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当する位置でドキュメントに何かが挿入されたことを通知します。
 void FieldView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。
protected  void AbstractDocument.fireInsertUpdate(DocumentEvent e)
          このイベントタイプへの通知を配信対象に登録しているリスナーをすべて通知します。
protected  void AbstractDocument.fireChangedUpdate(DocumentEvent e)
          このイベントタイプへの通知を配信対象に登録しているリスナーをすべて通知します。
protected  void AbstractDocument.fireRemoveUpdate(DocumentEvent e)
          このイベントタイプへの通知を配信対象に登録しているリスナーをすべて通知します。
 void FlowView.FlowStrategy.insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
          このビューが担当する位置でドキュメントに何かが挿入されたことを通知します。
 void FlowView.FlowStrategy.removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
          このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。
 void FlowView.FlowStrategy.changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
          このビューが担当する位置で属性が変更されたことをドキュメントから通知します。
protected  void AsyncBoxView.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a)
          モデルから変更の通知を受け取った場合に、レイアウトを更新します。
protected  void TableView.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)
           
 void WrappedPlainView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。
 void WrappedPlainView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントから何かが削除されたことを通知します。
 void WrappedPlainView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置で属性が変更されたことをドキュメントから通知します。
protected  boolean ZoneView.updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f)
          スーパークラスの動作が、この場合は適切でない子ビューの更新を試みます。
 void ZoneView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが扱う場所にあるドキュメントに何かが挿入されたことを通知します。
 void ZoneView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが扱う場所にあるドキュメントに何かが削除されたことを通知します。
 

javax.swing.text.html での DocumentEvent の使用
 

DocumentEvent 型のパラメータを持つ javax.swing.text.html のメソッド
 void BlockView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
           
 void InlineView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置で属性が変更されたことをドキュメントから通知します。
protected  void HTMLDocument.fireChangedUpdate(DocumentEvent e)
          このイベントタイプへの通知を配信対象に登録しているリスナーをすべて通知します。
 


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.