nsIAccessNode

IID:46820F9B-3088-4046-AB0F-56FDACDC7A82
Inherits From:nsISupports
Status:UNDER_REVIEW

An interface used by in-process accessibility clients to get style, window, markup and other information about a DOM node. When accessibility is active in Gecko, every DOM node can have one nsIAccessNode for each pres shell the DOM node is rendered in. The nsIAccessNode implementations are instantiated lazily. The nsIAccessNode tree for a given dom window has a one to one relationship to the DOM tree. If the DOM node for this access node is "accessible", then a QueryInterface to nsIAccessible will succeed.


Properties

readonly nsIAccessibleDocument accessibleDocument

The nsIAccessibleDocument that this nsIAccessNode resides in.

readonly nsIDOMNode DOMNode

The DOM node this nsIAccessNode is associated with.

readonly nsIAccessNode firstChildNode

The first nsIAccessNode child

readonly DOMString innerHTML

The innerHTML for the DOM node This is a text string of all the markup inside the DOM node, not including the start and end tag for the node.

readonly nsIAccessNode lastChildNode

The last nsIAccessNode child

readonly nsIAccessNode nextSiblingNode

The next nsIAccessNode sibling

readonly PRInt32 numChildren

The number of DOM children for the DOM node, which matches the number of nsIAccessNode children for this nsIAccessNode.

readonly voidPtr* ownerWindow

The OS window handle for the window this node is being displayed in.

readonly nsIAccessNode parentNode

The parent nsIAccessNode

readonly nsIAccessNode previousSiblingNode

The previous nsIAccessNode sibling

readonly voidPtr* uniqueID

A unique ID calculated for this DOM node, for the purposes of caching and referencing this object.


Methods

nsIAccessNode getChildNodeAt ( PRInt32 childNum ) DOMString getComputedStyleValue ( DOMString pseudoElt , DOMString propertyName )

nsIAccessNode getChildNodeAt ( PRInt32 childNum )

Get the nth child of this node

Arguments:
childNum: Zero-based child index
Returns:
nsIAccessNode child

DOMString getComputedStyleValue ( DOMString pseudoElt , DOMString propertyName )

Retrieve the computed style value for this DOM node, if it is a DOM element. Note: the meanings of width, height and other size measurements depend on the version of CSS being used. Therefore, for bounds information, it is better to use nsIAccessible::accGetBounds.

Arguments:
pseudoElt: The pseudo element to retrieve style for, or NULL for general computed style information for this node.
propertyName: Retrieve the computed style value for this property name, for example "border-bottom".

References

This interface is the type of the following properties:

nsIAccessNode.firstChildNode, nsIAccessNode.lastChildNode, nsIAccessNode.nextSiblingNode, nsIAccessNode.parentNode, nsIAccessNode.previousSiblingNode

This interface is passed as an argument to the following methods:

nsPIAccessibleDocument.cacheAccessNode

This interface is returned from the following methods:

nsIAccessNode.getChildNodeAt, nsIAccessibleDocument.getCachedAccessNode, nsIAccessibleRetrieval.getCachedAccessNode

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com