JavaTM Platform
Standard Ed. 6

インタフェース
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.changedUpdate(DocumentEvent e)
          属性または属性セットが変更されたことを通知します。
 void DocumentListener.insertUpdate(DocumentEvent e)
          ドキュメントへの挿入があったことを通知します。
 void DocumentListener.removeUpdate(DocumentEvent e)
          ドキュメントの一部が削除されたことを通知します。
 

javax.swing.text での DocumentEvent の使用
 

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

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

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

DocumentEvent 型のパラメータを持つ javax.swing.text.html のメソッド
 void BlockView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
           
 void ImageView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          Elements 属性の変更時に呼び出されます。
 void InlineView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置で属性が変更されたことをドキュメントから通知します。
protected  void HTMLDocument.fireChangedUpdate(DocumentEvent e)
          通知の配信対象を、指定されたイベント型で登録したすべてのリスナーに通知します。
 void InlineView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。
 void InlineView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。
 


JavaTM Platform
Standard Ed. 6

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

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