public abstract static class DocumentFilter.FilterBypass extends Object
| コンストラクタと説明 |
|---|
FilterBypass() |
| 修飾子と型 | メソッドと説明 |
|---|---|
abstract Document |
getDocument()
変更が行われているDocumentを返します。
|
abstract void |
insertString(int offset, String string, AttributeSet attr)
DocumentFilterをバイパスして、指定テキストを挿入します。
|
abstract void |
remove(int offset, int length)
DocumentFilterをバイパスして、テキストの指定領域を削除します。
|
abstract void |
replace(int offset, int length, String string, AttributeSet attrs)
offsetからoffset+lengthまでのテキスト領域を削除し、textに置き換えます。 |
public abstract Document getDocument()
public abstract void remove(int offset,
int length)
throws BadLocationException
offset - 先頭からのオフセット>= 0length - 削除対象の文字数>= 0BadLocationException - 削除範囲の一部がドキュメントの有効な部分でなかった場合。例外内の位置は、最初に検出された不正な位置。public abstract void insertString(int offset,
String string,
AttributeSet attr)
throws BadLocationException
offset - コンテンツを挿入するドキュメント内のオフセット。0以上。指定位置やその後ろの変更を追跡するすべての位置が移動します。string - 挿入する文字列attr - 挿入されたコンテンツに関連付ける属性。属性がない場合はnullも可。BadLocationException - 指定された挿入位置がドキュメント内の有効な位置でない場合public abstract void replace(int offset,
int length,
String string,
AttributeSet attrs)
throws BadLocationException
offsetからoffset+lengthまでのテキスト領域を削除し、textに置き換えます。offset - Documentでの位置length - 削除するテキストの長さstring - 挿入するテキスト。nullの場合、テキストは挿入されないattrs - 挿入されたテキストの属性を示すAttributeSet。nullも可。BadLocationException - 指定された挿入位置がドキュメント内の有効な位置でない場合 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.