Java プラットフォーム 1.2

インタフェース
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)
          このビューが担当する位置で属性が変更されたことをドキュメントから通知します。
 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)
          このビューが担当するドキュメント内の位置から何かが削除されたことを通知します。
 void LabelView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが担当する位置で属性が変更されたということをドキュメントから通知します。
 void LabelView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが担当する範囲内の位置に何かが追加されたということをドキュメントから通知します。
 void LabelView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当する範囲内の位置から何かが削除されたということをドキュメントから通知します。
 void BoxView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
          ドキュメント内の、ビューが扱う位置に何かが挿入されたことを通知します。
 void BoxView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          ドキュメント内の、ビューが扱う位置から何かが削除されたことを通知します。
 void BoxView.changedUpdate(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  void AbstractDocument.fireInsertUpdate(DocumentEvent e)
          指定したイベントタイプの通知を受けるように登録された、すべてのリスナーに通知を行います。
protected  void AbstractDocument.fireChangedUpdate(DocumentEvent e)
          指定したイベントタイプの通知を受けるように登録された、すべてのリスナーに通知を行います。
protected  void AbstractDocument.fireRemoveUpdate(DocumentEvent e)
          指定したイベントタイプの通知を受けるように登録された、すべてのリスナーに通知を行います。
 void ParagraphView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当するドキュメント内の位置に何かが挿入されたということを通知します。
 void ParagraphView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。
 void ParagraphView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
          このビューが担当する位置で属性が変更されたということをドキュメントから通知します。
 

javax.swing.text.html における DocumentEvent の使用方法
 

DocumentEvent のパラメータを持つ javax.swing.text.html におけるメソッド
 void ParagraphView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
          このビューが担当する位置で属性が変更されたということをドキュメントから通知します。
 


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.