- すべてのスーパー・インタフェース:
- 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でない場合、オブジェクトはこのインタフェースをサポートします。 - 
フィールドのサマリーインタフェース javax.accessibility.AccessibleTextで宣言されたフィールドCHARACTER, SENTENCE, WORD
- 
メソッドのサマリー修飾子と型 メソッド 説明 voidcut(int startIndex, int endIndex)2つのインデックス間のテキストを切り取り、システム・クリップボードへ格納します。voiddelete(int startIndex, int endIndex)2つのインデックス間のテキストを削除します。StringgetTextRange(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つのインデックス間のテキストの属性を設定します。voidsetTextContents(String s)テキスト・コンテンツを指定文字列に設定します。インタフェース javax.accessibility.AccessibleTextで宣言されたメソッドgetAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart
- 
メソッドの詳細- 
setTextContentsvoid setTextContents(String s)テキスト・コンテンツを指定文字列に設定します。- パラメータ:
- s- テキスト・コンテンツを設定する文字列
 
- 
insertTextAtIndexvoid insertTextAtIndex(int index, String s)指定された文字列を指定されたインデックスに挿入します。- パラメータ:
- index- 文字列を挿入するテキストのインデックス
- s- テキストに挿入する文字列
 
- 
getTextRangeString getTextRange(int startIndex, int endIndex)2つのインデックス間のテキスト文字列を返します。- パラメータ:
- startIndex- テキストの開始インデックス
- endIndex- テキストの終了インデックス
- 戻り値:
- インデックス間のテキスト文字列
 
- 
deletevoid delete(int startIndex, int endIndex)2つのインデックス間のテキストを削除します。- パラメータ:
- startIndex- テキストの開始インデックス
- endIndex- テキストの終了インデックス
 
- 
cutvoid cut(int startIndex, int endIndex)2つのインデックス間のテキストを切り取り、システム・クリップボードへ格納します。- パラメータ:
- startIndex- テキストの開始インデックス
- endIndex- テキストの終了インデックス
 
- 
pastevoid paste(int startIndex)システム・クリップボードのテキストを指定したインデックスで始まるテキストにペーストします。- パラメータ:
- startIndex- テキストの開始インデックス
 
- 
replaceTextvoid replaceText(int startIndex, int endIndex, String s)2つのインデックス間のテキストを、指定した文字列に置き換えます。- パラメータ:
- startIndex- テキストの開始インデックス
- endIndex- テキストの終了インデックス
- s- 2つのインデックス間のテキストを置き換える文字列
 
- 
selectTextvoid selectText(int startIndex, int endIndex)2つのインデックス間のテキストを選択します。- パラメータ:
- startIndex- テキストの開始インデックス
- endIndex- テキストの終了インデックス
 
- 
setAttributesvoid setAttributes(int startIndex, int endIndex, AttributeSet as)2つのインデックス間のテキストの属性を設定します。- パラメータ:
- startIndex- テキストの開始インデックス
- endIndex- テキストの終了インデックス
- as- 属性セット
- 関連項目:
- AttributeSet
 
 
-