Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.accessibility

Interface AccessibleHypertext

java.lang.Object
|
+--javax.accessibility.AccessibleText
   |
   +--javax.accessibility.AccessibleHypertext

All Implemented Interfaces:

AccessibleText


public interface AccessibleHypertext

implements 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:See Also:

Method Summary

javax.accessibility.AccessibleHyperlinkgetLink(int i)

Returns link object denoted by the number i in this document, or null if i is out of bounds.
intgetLinkCount()

Returns the number of links in the document, if any exist.
intgetLinkIndex(int c)

Returns the link index for this character index if it resides within one of the hyperlinks of the document.

Method Details

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:


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: