- すべてのスーパー・インタフェース:
AccessibleText
- 既知のすべての実装クラス:
JEditorPane.AccessibleJEditorPane,JEditorPane.AccessibleJEditorPaneHTML,JEditorPane.JEditorPaneAccessibleHypertextSupport,JPasswordField.AccessibleJPasswordField,JSpinner.AccessibleJSpinner,JTextArea.AccessibleJTextArea,JTextComponent.AccessibleJTextComponent,JTextField.AccessibleJTextField
public interface AccessibleEditableText extends AccessibleText
AccessibleEditableTextインタフェースは、編集可能なテキスト情報を表示するすべてのクラスによって実装される必要があります。 AccessibleTextインタフェースに加えて、このインタフェースは、補助的なテクノロジがコンテンツ、属性、および空間的なロケーションを介してそのテキストにアクセスするための標準的なメカニズムを提供します。 アプリケーションは、最初にAccessibleContext (Accessibleを参照してください)を取得し、次にAccessibleContextのAccessibleContext.getAccessibleEditableText()メソッドを呼び出して、オブジェクトがAccessibleEditableTextインタフェースをサポートしているかどうかを判断できます。 戻り値がnullでない場合、オブジェクトはこのインタフェースをサポートします。 - 導入されたバージョン:
- 1.4
- 関連項目:
-
フィールドのサマリー
インタフェースjavax.accessibility.AccessibleTextで宣言されているフィールド
CHARACTER, SENTENCE, WORD -
メソッドのサマリー
修飾子と型メソッド説明voidcut(int startIndex, int endIndex) 2つのインデックス間のテキストを切り取り、システム・クリップボードへ格納します。voiddelete(int startIndex, int endIndex) 2つのインデックス間のテキストを削除します。getTextRange(int startIndex, int endIndex) 2つのインデックス間のテキスト文字列を返します。voidinsertTextAtIndex(int index, String s) 指定された文字列を指定されたインデックスに挿入します。voidpaste(int startIndex) システム・クリップボードのテキストを指定したインデックスで始まるテキストにペーストします。voidreplaceText(int startIndex, int endIndex, String s) 2つのインデックス間のテキストを、指定した文字列に置き換えます。voidselectText(int startIndex, int endIndex) 2つのインデックス間のテキストを選択します。voidsetAttributes(int startIndex, int endIndex, AttributeSet as) 2つのインデックス間のテキストの属性を設定します。voidテキスト・コンテンツを指定文字列に設定します。インタフェースjavax.accessibility.AccessibleTextで宣言されたメソッド
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart
-
メソッドの詳細
-
setTextContents
-
insertTextAtIndex
void insertTextAtIndex(int index, String s) 指定された文字列を指定されたインデックスに挿入します。- パラメータ:
index- 文字列を挿入するテキストのインデックスs- テキストに挿入する文字列
-
getTextRange
String getTextRange(int startIndex, int endIndex) 2つのインデックス間のテキスト文字列を返します。- パラメータ:
startIndex- テキストの開始インデックスendIndex- テキストの終了インデックス- 戻り値:
- インデックス間のテキスト文字列
-
delete
void delete(int startIndex, int endIndex) 2つのインデックス間のテキストを削除します。- パラメータ:
startIndex- テキストの開始インデックスendIndex- テキストの終了インデックス
-
cut
void cut(int startIndex, int endIndex) 2つのインデックス間のテキストを切り取り、システム・クリップボードへ格納します。- パラメータ:
startIndex- テキストの開始インデックスendIndex- テキストの終了インデックス
-
paste
void paste(int startIndex) システム・クリップボードのテキストを指定したインデックスで始まるテキストにペーストします。- パラメータ:
startIndex- テキストの開始インデックス
-
replaceText
void replaceText(int startIndex, int endIndex, String s) 2つのインデックス間のテキストを、指定した文字列に置き換えます。- パラメータ:
startIndex- テキストの開始インデックスendIndex- テキストの終了インデックスs- 2つのインデックス間のテキストを置き換える文字列
-
selectText
void selectText(int startIndex, int endIndex) 2つのインデックス間のテキストを選択します。- パラメータ:
startIndex- テキストの開始インデックスendIndex- テキストの終了インデックス
-
setAttributes
void setAttributes(int startIndex, int endIndex, AttributeSet as) 2つのインデックス間のテキストの属性を設定します。- パラメータ:
startIndex- テキストの開始インデックスendIndex- テキストの終了インデックスas- 属性セット- 関連項目:
-