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

クラスJEditorPane.JEditorPaneAccessibleHypertextSupport

すべての実装されたインタフェース:
Serializable, EventListener, AccessibleAction, AccessibleComponent, AccessibleEditableText, AccessibleExtendedComponent, AccessibleExtendedText, AccessibleHypertext, AccessibleText, CaretListener, DocumentListener
含まれているクラス:
JEditorPane

protected class JEditorPane.JEditorPaneAccessibleHypertextSupport extends JEditorPane.AccessibleJEditorPane implements AccessibleHypertext
AccessibleJEditorPaneHTML.getAccessibleTextによって返されるものです。 HTMLドキュメントがJEditorPaneに表示されている場合にAccessibleHypertextのサポートを提供します。
  • コンストラクタの詳細

    • JEditorPaneAccessibleHypertextSupport

      public JEditorPaneAccessibleHypertextSupport()
      JEditorPaneAccessibleHypertextSupportを構築します。
  • メソッドの詳細

    • getLinkCount

      public int getLinkCount()
      このハイパーテキスト・ドキュメント内にあるリンクの数を返します。
      定義:
      getLinkCount 、インタフェース: AccessibleHypertext
      戻り値:
      このハイパーテキスト・ドキュメント内にあるリンクの数。
    • getLinkIndex

      public int getLinkIndex(int charIndex)
      この文字インデックスに関連付けられたハイパーリンクの配列へのインデックスを返します。このインデックスに関連付けられたハイパーリンクがない場合は -1を返します。
      定義:
      getLinkIndex 、インタフェース: AccessibleHypertext
      パラメータ:
      charIndex - テキスト内のインデックス
      戻り値:
      このハイパーテキスト・ドキュメントのハイパーリンクのセットへのインデックス。
    • getLink

      public AccessibleHyperlink getLink(int linkIndex)
      インデックスのハイパーリンクの配列へのインデックスを返します。 このインデックスにハイパーリンクがない場合はnullを返します。
      定義:
      getLink 、インタフェース: AccessibleHypertext
      パラメータ:
      linkIndex - このハイパーテキスト・ドキュメントのハイパーリンクのセットへの
      戻り値:
      ハイパーリンクの文字列表現
    • getLinkText

      public String getLinkText(int linkIndex)
      このハイパーリンクに関連付けられたドキュメント内の連続したテキストを返します。
      パラメータ:
      linkIndex - このハイパーテキスト・ドキュメントのハイパーリンクのセットへの
      戻り値:
      このインデックスでリンクを共有する連続したテキスト