javax.accessibility
Interface AccessibleHypertext
java.lang.Object
|
+--javax.accessibility.AccessibleText
|
+--javax.accessibility.AccessibleHypertext
All Implemented Interfaces:
AccessibleText
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.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
getLink
public AccessibleHyperlink getLink(int i)
Returns link object denoted by the number i
in this
document, or null if i is out of bounds.
Parameters:
Returns:
getLinkCount
public int getLinkCount()
Returns the number of links in the document, if any exist.
Returns:
- the number of links, or -1
getLinkIndex
public int getLinkIndex(int c)
Returns the link index for this character index if it resides within
one of the hyperlinks of the document. If no association exists at that
character, or c is out of bounds, returns -1.
Parameters:
Returns:
The
AccessibleContext.getAccessibleText()
method should return an instance of this interface only when it is supported.