-
-
方法总结
int
int
将索引返回到与此字符索引关联的超链接数组中,如果没有与此索引关联的超链接,则返回 -1。
在接口 javax.accessibility.AccessibleText 中声明的方法
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart
-
方法详情
-
getLinkCount
int getLinkCount()
返回此超文本文档中的链接数。
-
返回:
-
此超文本文档中的链接数
-
getLink
返回此超文本文档的第 n 个链接。
-
参数:
linkIndex - 在此超文本的链接内
-
返回:
-
封装第 n 个链接的链接对象
-
getLinkIndex
int getLinkIndex(int charIndex)
将索引返回到与此字符索引关联的超链接数组中,如果没有与此索引关联的超链接,则返回 -1。
-
参数:
charIndex - 文本中的索引
-
返回:
-
对此超文本文档的超链接集的索引