|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessibleHypertext
Objects which present hyperlinks in a document should implement this interface. Accessibility software can use the implementations of this interface to aid the user in navigating the links.
The AccessibleContext.getAccessibleText()
method
should return an instance of this interface only when it is supported.
Accessible
,
AccessibleContext
,
AccessibleText
,
AccessibleContext.getAccessibleText()
Field Summary |
---|
Fields inherited from interface javax.accessibility.AccessibleText |
---|
CHARACTER, SENTENCE, WORD |
Method Summary | |
---|---|
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. |
Methods inherited from interface javax.accessibility.AccessibleText |
---|
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart |
Method Detail |
---|
int getLinkCount()
AccessibleHyperlink getLink(int i)
i
in this
document, or null if i is out of bounds.
i
- the ith hyperlink of the document
i
int getLinkIndex(int c)
c
- the character index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |