nsISupports
Last changed in Gecko 1.9 (Firefox 3)nsIAccessible getAnchor(in long index); Note: Renamed from getObject in Gecko 1.9 |
nsIURI getURI(in long index); |
boolean isSelected(); Obsolete since Gecko 1.9 |
boolean isValid(); Obsolete since Gecko 1.9 |
Attribute | Type | Description |
anchorCount |
long |
The number of anchors within this Hyperlink. Is normally 1 for anchors. This anchor is, for example, the visible output of the html:a tag. With an Image Map, reflects the actual areas within the map. Read only. Note: Renamed from
anchors in Gecko 1.9Exceptions thrown
|
endIndex |
long |
The end offset of the hyperlink accessible within the parent accessible. The returned value is related to the Note: The link itself is represented by one embedded character within the parent text, so the endIndex should be startIndex + 1.
Exceptions thrown
|
selected |
boolean |
Determines whether the element currently has the focus, for example after returning from the destination page. Read only. Note: ARIA links can only be focused if they have the tabindex attribute set. Also, state_focused should then be set on the accessible for this link.
Exceptions thrown
|
startIndex |
long |
The offset of the hyperlink accessible within the parent accessible. The returned value is related to the Exceptions thrown
|
valid |
boolean |
Determines whether the hyperlink is valid, for example points to a valid URL. Read only. Note: Currently only used with ARIA links, and the author has to specify that the link is invalid via the aria-invalid='true' attribute. In all other cases, true is returned.
Exceptions thrown
|
Returns a reference to the object at the given index.
nsIAccessible getAnchor( in long index );
index
The nsIAccessible
object at the desired index.
Returns the URI at the given index.
nsIURI getURI( in long index );
index
The nsIURI
object containing the specifications for the URI.
boolean isSelected();
None.
true
if the element currently has the focus.
boolean isValid();
None.
true
if the hyperlink is valid.
Anchors, image maps, xul:labels with class="text-link" implement this interface.