public interface AccessibleHypertext extends AccessibleText
 AccessibleHypertext类是在显示器上显示超文本信息的所有类的基类。 该类提供了辅助技术通过其内容,属性和空间位置访问该文本的标准机制。 它还提供了操纵超链接的标准机制。 应用程序可以通过首先获取AccessibleContext(参见Accessible ),然后调用AccessibleContext的AccessibleContext.getAccessibleText()方法来确定对象是否支持AccessibleHypertext接口。 如果返回值是扩展AccessibleHypertext的类,则该对象支持AccessibleHypertext。 
CHARACTER, SENTENCE, WORD| Modifier and Type | Method and Description | 
|---|---|
| AccessibleHyperlink | getLink(int linkIndex)
              返回此超文本文件的第n个链接。 
             | 
| int | getLinkCount()
              返回此超文本文件中的链接数。 
             | 
| int | getLinkIndex(int charIndex)
              将索引返回到与此字符索引相关联的超链接数组,如果没有与此索引相关联的超链接,则返回-1。 
             | 
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStartint getLinkCount()
AccessibleHyperlink getLink(int linkIndex)
linkIndex - 在这个超文本的链接内 
           int getLinkIndex(int charIndex)
charIndex - 文本中的索引 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.