モジュール java.desktop
パッケージ javax.accessibility

インタフェースAccessibleExtendedText

既知のすべての実装クラス:
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport, JPasswordField.AccessibleJPasswordField, JTextArea.AccessibleJTextArea, JTextComponent.AccessibleJTextComponent, JTextField.AccessibleJTextField

public interface AccessibleExtendedText
AccessibleExtendedTextインタフェースには、AccessibleTextインタフェースでは提供されていない追加のメソッドが含まれています。

アプリケーションは、最初にAccessibleContext (Accessibleを参照してください)を取得し、次にAccessibleContextAccessibleContext.getAccessibleText()メソッドを呼び出して、オブジェクトがAccessibleExtendedTextインタフェースをサポートしているかどうかを判断できます。 戻り値がAccessibleExtendedTextのインスタンスである場合、オブジェクトはこのインタフェースをサポートします。

導入されたバージョン:
1.5
関連項目:
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    static final int
    取得すべきテキストの一部が、同じテキスト属性を持つ連続したテキストであることを示すのに使用する定数です。
    static final int
    取得すべきテキストの一部が1行のテキストであることを示すのに使用する定数です。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    getTextBounds(int startIndex, int endIndex)
    2つのインデックス間のテキストの境界の矩形を返します。
    getTextRange(int startIndex, int endIndex)
    2つのインデックス間のテキストを返します。
    getTextSequenceAfter(int part, int index)
    指定されたindexの後ろのAccessibleTextSequenceを返します。
    getTextSequenceAt(int part, int index)
    指定されたindexにあるAccessibleTextSequenceを返します。
    getTextSequenceBefore(int part, int index)
    指定されたindexの前のAccessibleTextSequenceを返します。
  • フィールド詳細

  • メソッドの詳細

    • getTextRange

      String getTextRange(int startIndex, int endIndex)
      2つのインデックス間のテキストを返します。
      パラメータ:
      startIndex - テキストの開始インデックス
      endIndex - テキストの終了インデックス
      戻り値:
      インデックスが有効な場合はテキスト文字列。 それ以外の場合はnullが返されます。
    • getTextSequenceAt

      AccessibleTextSequence getTextSequenceAt(int part, int index)
      指定されたindexにあるAccessibleTextSequenceを返します。
      パラメータ:
      part - 取得するCHARACTERWORDSENTENCELINE、またはATTRIBUTE_RUN
      index - テキスト内のインデックス
      戻り値:
      partindexが有効な場合は、テキストを指定するAccessibleTextSequence それ以外の場合はnullが返されます。
      関連項目:
    • getTextSequenceAfter

      AccessibleTextSequence getTextSequenceAfter(int part, int index)
      指定されたindexの後ろのAccessibleTextSequenceを返します。
      パラメータ:
      part - 取得するCHARACTERWORDSENTENCELINE、またはATTRIBUTE_RUN
      index - テキスト内のインデックス
      戻り値:
      partindexが有効な場合は、テキストを指定するAccessibleTextSequence それ以外の場合はnullが返されます。
      関連項目:
    • getTextSequenceBefore

      AccessibleTextSequence getTextSequenceBefore(int part, int index)
      指定されたindexの前のAccessibleTextSequenceを返します。
      パラメータ:
      part - 取得するCHARACTERWORDSENTENCELINE、またはATTRIBUTE_RUN
      index - テキスト内のインデックス
      戻り値:
      partindexが有効な場合は、テキストを指定するAccessibleTextSequence それ以外の場合はnullが返されます。
      関連項目:
    • getTextBounds

      Rectangle getTextBounds(int startIndex, int endIndex)
      2つのインデックス間のテキストの境界の矩形を返します。
      パラメータ:
      startIndex - テキストの開始インデックス
      endIndex - テキストの終了インデックス
      戻り値:
      インデックスが有効な場合はテキストの境界の矩形。 それ以外の場合はnullが返されます。