javax.accessibility
public interface AccessibleHypertext extends AccessibleText
The AccessibleContext.getAccessibleText()
method
should return an instance of this interface only when it is supported.
Accessible
,
AccessibleContext
,
AccessibleText
,
AccessibleContext.getAccessibleText()
CHARACTER, SENTENCE, WORD
Modifier and Type | Method and Description |
---|---|
AccessibleHyperlink |
getLink(int i)
Returns link object denoted by the number
i in this
document, or null if i is out of bounds. |
int |
getLinkCount()
Returns the number of links in the document, if any exist.
|
int |
getLinkIndex(int c)
Returns the link index for this character index if it resides within
one of the hyperlinks of the document.
|
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart
int getLinkCount()
AccessibleHyperlink getLink(int i)
i
in this
document, or null if i is out of bounds.i
- the ith hyperlink of the documenti
int getLinkIndex(int c)
c
- the character index