org.eclipse.actf.accservice.core.win32.ia2
Class IA2AccessibleHypertext

java.lang.Object
  extended by org.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleHypertext

public class IA2AccessibleHypertext
extends Object

implementation of IA2AccessibleHypertext /** The IA2AccessibleHyperText interface exposes information about hypertext in a document. The IAccessibleHypertext interface is the main interface to expose hyperlinks in a document, typically a text document, that are used to reference other documents. A typical implementation is to implement this interface the smallest text object such as a paragraph of text.

Author:
Kavitha Teegala
See Also:
IA2Accessible, IA2Accessible.getAccessibleHypertext()

Constructor Summary
IA2AccessibleHypertext(int val, IA2Accessible parent)
          Constructor used to create an accessible image object
 
Method Summary
 IA2AccessibleHyperlink getHyperlink(int index)
          Returns the specified link.
 int getHyperlinkCount()
          Returns the number of Hyperlinks and link groups contained within this hypertext paragraph.
 int getHyperlinkIndex(int charIndex)
          Returns the index of the hyperlink that is associated with this character index.This is the case when a link spans the given character index.
protected  int internalGetHyperlink(int index)
           
protected  int internalGetHyperlinkCount()
           
protected  int internalGetHyperlinkIndex(int charIndex)
           
 int internalRef()
          used by native code only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IA2AccessibleHypertext

public IA2AccessibleHypertext(int val,
                              IA2Accessible parent)
Constructor used to create an accessible image object

Parameters:
image - reference pointer to the IA2Accessible image object
parent - IA2Accessible parent of this object
Method Detail

internalRef

public int internalRef()
used by native code only. Clients should not call directly.

Returns:
ptr address for native object

getHyperlinkCount

public int getHyperlinkCount()
Returns the number of Hyperlinks and link groups contained within this hypertext paragraph.

Returns:
- number of links

internalGetHyperlinkCount

protected int internalGetHyperlinkCount()

getHyperlink

public IA2AccessibleHyperlink getHyperlink(int index)
Returns the specified link. The returned IAccessibleHyperlink object encapsulates the hyperlink and provides several kinds of information describing it.

Parameters:
index -
Returns:
IA2AccessibleHyperlink

internalGetHyperlink

protected int internalGetHyperlink(int index)

getHyperlinkIndex

public int getHyperlinkIndex(int charIndex)
Returns the index of the hyperlink that is associated with this character index.This is the case when a link spans the given character index.

Parameters:
charIndex -
Returns:

internalGetHyperlinkIndex

protected int internalGetHyperlinkIndex(int charIndex)