インタフェース
javax.swing.event.DocumentEventの使用
| パッケージ | 説明 |
|---|---|
| javax.swing.event |
Swingコンポーネントによってトリガーされるイベントを提供します。
|
| javax.swing.text |
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
|
| javax.swing.text.html |
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。 |
-
javax.swing.eventでのDocumentEventの使用
型DocumentEventのパラメータを持つjavax.swing.eventのメソッド 修飾子と型 メソッド 説明 voidDocumentListener. changedUpdate(DocumentEvent e)属性または属性セットが変更されたことを通知します。voidDocumentListener. insertUpdate(DocumentEvent e)ドキュメントへの挿入があったことを通知します。voidDocumentListener. removeUpdate(DocumentEvent e)ドキュメントの一部が削除されたことを通知します。 -
javax.swing.textでのDocumentEventの使用
DocumentEventを実装しているjavax.swing.textのクラス 修飾子と型 クラス 説明 classAbstractDocument.DefaultDocumentEventドキュメントが変更された場合に、ドキュメントの変更を格納します。型DocumentEventのパラメータを持つjavax.swing.textのメソッド 修飾子と型 メソッド 説明 voidFlowView. changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidFlowView.FlowStrategy. changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidGlyphView. changedUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidJTextComponent.AccessibleJTextComponent. changedUpdate(DocumentEvent e)ドキュメントの削除を処理します(AccessibleContext.ACCESSIBLE_TEXT_PROPERTYという適切なプロパティ変更イベントをトリガーする)。voidLabelView. changedUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidParagraphView. changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidPlainView. changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidView. changedUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。voidWrappedPlainView. changedUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。protected voidAbstractDocument. fireChangedUpdate(DocumentEvent e)このイベント・タイプの通知対象として登録されているすべてのリスナーに通知します。protected voidAbstractDocument. fireInsertUpdate(DocumentEvent e)このイベント・タイプの通知対象として登録されているすべてのリスナーに通知します。protected voidAbstractDocument. fireRemoveUpdate(DocumentEvent e)このイベント・タイプの通知対象として登録されているすべてのリスナーに通知します。protected voidBoxView. forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)指定されたDocumentEventを、モデルへの変更について通知する必要のある子ビューに転送します。protected voidView. forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)指定されたDocumentEventを、モデルへの変更について通知する必要のある子ビューに転送します。protected voidView. forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f)指定された子ビューにDocumentEventを転送します。voidFieldView. insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidFlowView.FlowStrategy. insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)このビューが担当する位置でドキュメントに何かが挿入されたことを通知します。voidFlowView. insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidGlyphView. insertUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidJTextComponent.AccessibleJTextComponent. insertUpdate(DocumentEvent e)ドキュメントの挿入を処理します(AccessibleContext.ACCESSIBLE_TEXT_PROPERTYという適切なプロパティ変更イベントをトリガーする)。voidPlainView. insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidView. insertUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidWrappedPlainView. insertUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidZoneView. insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidFieldView. removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。voidFlowView.FlowStrategy. removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。voidFlowView. removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。voidGlyphView. removeUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。voidJTextComponent.AccessibleJTextComponent. removeUpdate(DocumentEvent e)ドキュメントの削除を処理します(AccessibleContext.ACCESSIBLE_TEXT_PROPERTYという適切なプロパティ変更イベントをトリガーする)。voidPlainView. removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。voidView. removeUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。voidWrappedPlainView. removeUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。voidZoneView. removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。protected booleanView. updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f)モデルが変更されたという通知を受け取ると、子ビューを更新します。このビューが扱う要素の変更記録があります。protected booleanZoneView. updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f)スーパー・クラスの動作により、子ビューの更新が試みられます。ただし、子はゾーンであり、関連する要素の変更の影響を直接受けないため、この動作は適切ではありません。protected voidPlainView. updateDamage(DocumentEvent changes, Shape a, ViewFactory f)指定されたドキュメント・イベントでカバーされる変更領域を再ペイントします。protected voidAsyncBoxView. updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a)モデルから変更の通知を受け取った場合に、レイアウトを更新します。protected voidView. updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a)モデルから変更の通知を受け取った場合に、レイアウトを更新します。 -
javax.swing.text.htmlでのDocumentEventの使用
型DocumentEventのパラメータを持つjavax.swing.text.htmlのメソッド 修飾子と型 メソッド 説明 voidImageView. changedUpdate(DocumentEvent e, Shape a, ViewFactory f)Elements属性の変更時に呼び出されます。voidInlineView. changedUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置で属性が変更されたことをドキュメントから通知します。protected voidHTMLDocument. fireChangedUpdate(DocumentEvent e)このイベント・タイプの通知対象として登録されているすべてのリスナーに通知します。voidInlineView. insertUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。voidInlineView. removeUpdate(DocumentEvent e, Shape a, ViewFactory f)このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。