nsIAccessible

  • Revision slug: nsIAccessible
  • Revision title: nsIAccessible
  • Revision id: 134428
  • Created:
  • Creator: Surkov.alexander
  • Is current revision? No
  • Comment 24 words added, 2 words removed

Revision Content

{{ BackToPage("Accessibility:AT-APIs#Supported_Interfaces", "AT APIs Support") }}

Summary

The nsIAccessible interface is a cross-platform interface that supports platform-specific accessibility APIs like MSAA and ATK. Contains the sum of what's needed to support IAccessible as well as ATK's generic accessibility objects.

Can also be used by in-process accessibility clients to get information about objects in the accessible tree. The accessible tree is a subset of nodes in the DOM tree -- such as documents, focusable elements and text. Mozilla creates the implementations of nsIAccessible on demand.

 [scriptable, uuid=(c7520419-87ec-42bc-98cc-04c0bf173530)]
 interface nsIAccessible : nsISupports { ... };

{{ InterfaceStatus("nsIAccessible", "accessible/public/nsIAccessible.idl", "UNDER_REVIEW", "Mozilla 1.9", "yes") }}

Overview

Tree navigation

You can navigate through the accessible tree by the following methods and attributes.

  • {{ Interface-attribute("nsIAccessible", "parent") }} to get the parent accessible
  • {{ Interface-attribute("nsIAccessible", "nextSibling") }}, {{ Interface-attribute("nsIAccessible", "previousSibling") }} to get sibling accessibles
  • {{ Interface-attribute("nsIAccessible", "firstChild") }}, {{ Interface-attribute("nsIAccessible", "lastChild") }} to get first and last child
  • {{ Interface-attribute("nsIAccessible", "children") }}, {{ Interface-method("nsIAccessible", "getChildAt") }}, {{ Interface-attribute("nsIAccessible", "childCount") }} to navigate through the children by index

Accessible position

You can use {{ Interface-attribute("nsIAccessible", "indexInParent") }} to get accessible index in its parent. Use {{wiki.template('Interface-method', [ "nsIAccessible", "groupPosition ])}} to get information about this accessible in its group.

Methods

getKeyBindings
Provides array of localized string of global keyboard accelerator for the given action index supported by accessible.
getFinalState
Provides a bit fields of accessible states which describe boolean properties of accessible. 
groupPosition
This method returns grouping information. Used for tree items, list items, tab panel labels, radio buttons, etc. Also used for collectons of non-text objects.
getChildAtPoint
This method returns an accessible child which contains the coordinate at (x, y) in screen pixels.
getChildAt
This method returns Nth accessible child using zero-based index or last child if index than less than zero.
getAccessibleToRight
This method returns an accessible node geometrically to the right of this one.
getAccessibleToLeft
This method returns an accessible node geometrically to the left of this one.
getAccessibleAbove
This method returns an accessible node geometrically above this one.
getAccessibleBelow
This method returns an accessible node geometrically below this one.
getAccessibleRelated
This method returns an accessible related to this one by the given relation type.
getRelation
This method returns one accessible relation for this object.
getRelations
This method returns multiple accessible relations for this object.
getBounds
This method returns accessible's (x and y) coordinates relative to the screen and accessible's width and height.
setSelected
This method adds or remove this accessible to the current selection.
extendSelection
This method extends the current selection from its current accessible anchor node to this accessible.
takeSelection
This method selects this accessible node only.
takeFocus
This method focuses this accessible node.

getActionName
This method retrieves the name of the accessible action at the given zero-based index.
getActionDescription
This method retrieves the description of the accessible action at the given zero-based index.
doAction
This method performs the accessible action at the given zero-based index. Action number 0 is the default action.

Attributes

parent
Parent node in accessible tree.
nextSibling
Next sibling in accessible tree.
previousSibling
Previous sibling in accessible tree.
firstChild
First child in accessible tree.
lastChild
Last child in accessible tree.
children
Array of all this element's children.
childCount
Number of accessible children.
indexInParent
The 0-based index of this accessible in its parent's list of children, or -1 if this accessible does not have a parent.
name
Accessible name -- the main text equivalent for this node.
value
Accessible value -- a number or a secondary text equivalent for this node. Widgets that use role attribute can force a value using the valuenow attribute.
description
Accessible description -- long text associated with this node.
keyboardShortcut
Provides localized string of accesskey name, such as Alt+D. The modifier may be affected by user and platform preferences. Usually alt+letter, or just the letter alone for menu items.
defaultKeyBinding
Provides localized string of global keyboard accelerator for default action, such as Ctrl+O for Open file.
role
Natural enumerated accessible role for the associated element. The values depend on platform because of variations. See the ROLE_* constants defined in nsIAccessibleRole.This does not take into account role attribute as the finalRole does.
finalRole
Enumerated accessible role. The values depend on platform because of variations. See the ROLE_* constants defined in nsIAccessibleRole . Widgets can use role attribute to force the final role.
help
Help text associated with node.
focusedChild
Focused accessible child of node.
attributes
Attributes of accessible.
relationsCount
Returns the number of accessible relations for this object.
numActions
The number of accessible actions associated with this accessible.

  

Revision Source

<p>{{ BackToPage("Accessibility:AT-APIs#Supported_Interfaces", "AT APIs Support") }}</p>
<h3 name="Summary">Summary</h3>
<p style="margin: 0px 0px 1.7em; padding: 0px;">The <code style="color: rgb(37, 34, 29); font-weight: inherit;">nsIAccessible</code> interface is a cross-platform interface that supports platform-specific accessibility APIs like MSAA and ATK. Contains the sum of what's needed to support <code style="color: rgb(37, 34, 29); font-weight: inherit;">IAccessible</code> as well as ATK's generic accessibility objects.</p>
<p style="margin: 0px 0px 1.7em; padding: 0px;">Can also be used by in-process accessibility clients to get information about objects in the accessible tree. The accessible tree is a subset of nodes in the DOM tree -- such as documents, focusable elements and text. Mozilla creates the implementations of <code style="color: rgb(37, 34, 29); font-weight: inherit;">nsIAccessible</code> on demand.</p>
<pre class="eval" style="border: 1px solid rgb(223, 236, 241); margin: 0px 0px 1.7em; padding: 10px; overflow: auto; font-family: 'Courier New','Andale Mono',monospace; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(37, 34, 29);"> [scriptable, uuid=(c7520419-87ec-42bc-98cc-04c0bf173530)]
 interface nsIAccessible : <a href="/en/nsISupports" title="nsISupports">nsISupports</a> { ... };
</pre>
<p>{{ InterfaceStatus("nsIAccessible", "accessible/public/nsIAccessible.idl", "UNDER_REVIEW", "Mozilla 1.9", "yes") }}</p>
<h3 name="Methods">Overview</h3>
<h4>Tree navigation</h4>
<p>You can navigate through the accessible tree by the following methods and attributes.</p>
<ul> <li>{{ Interface-attribute("nsIAccessible", "parent") }} to get the parent accessible</li> <li>{{ Interface-attribute("nsIAccessible", "nextSibling") }}, {{ Interface-attribute("nsIAccessible", "previousSibling") }} to get sibling accessibles</li> <li>{{ Interface-attribute("nsIAccessible", "firstChild") }}, {{ Interface-attribute("nsIAccessible", "lastChild") }} to get first and last child</li> <li>{{ Interface-attribute("nsIAccessible", "children") }}, {{ Interface-method("nsIAccessible", "getChildAt") }}, {{ Interface-attribute("nsIAccessible", "childCount") }} to navigate through the children by index</li>
</ul><h4>Accessible position</h4>
<p>You can use {{ Interface-attribute("nsIAccessible", "indexInParent") }} to get accessible index in its parent. Use {{wiki.template('Interface-method', [ "nsIAccessible", "groupPosition ])}} to get information about this accessible in its group.</p><h3 name="Methods">Methods</h3>
<dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a href="/En/NsIAccessible/GetKeyBindings" name="getKeyBindings" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="en/nsIAccessible/getKeyBindings">getKeyBindings</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Provides array of localized string of global keyboard accelerator for the given action index supported by accessible.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a href="/En/NsIAccessible/GetFinalState" name="getFinalState" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="en/nsIAccessible/getFinalState">getFinalState</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Provides a bit fields of accessible states which describe boolean properties of accessible. </dd></dl> <dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GroupPosition" id="groupPosition" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/groupPosition">groupPosition</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns grouping information. Used for tree items, list items, tab panel labels, radio buttons, etc. Also used for collectons of non-text objects.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetChildAtPoint" id="groupPosition" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getChildAtPoint">getChildAtPoint</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns an accessible child which contains the coordinate at (x, y) in screen pixels.</dd></dl> <dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetChildAt" id="groupPosition" name="getChildAt" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getChildAt">getChildAt</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns Nth accessible child using zero-based index or last child if index than less than zero.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetAccessibleToRight" id="getAccessibleToRight" name="getAccessibleToRight" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getAccessibleToRight">getAccessibleToRight</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns an accessible node geometrically to the right of this one.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetAccessibleToLeft" id="getAccessibleToLeft" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getAccessibleToLeft">getAccessibleToLeft</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns an accessible node geometrically to the left of this one.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetAccessibleAbove" id="getAccessibleToLeft" name="getAccessibleAbove" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getAccessibleAbove">getAccessibleAbove</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns an accessible node geometrically above this one.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetAccessibleBelow" id="getAccessibleBelow" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getAccessibleBelow">getAccessibleBelow</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns an accessible node geometrically below this one.</dd></dl> <dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetAccessibleRelated" id="getAccessibleBelow" name="getAccessibleRelated" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getAccessibleRelated">getAccessibleRelated</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns an accessible related to this one by the given relation type.</dd></dl> <dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetRelation" id="getRelation" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getRelation">getRelation</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns one accessible relation for this object.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetRelations" id="getRelation" name="getRelations" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getRelations">getRelations</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns multiple accessible relations for this object.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetBounds" id="getBounds" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getBounds">getBounds</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method returns accessible's (x and y) coordinates relative to the screen and accessible's width and height.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/SetSelected" id="getBounds" name="setSelected" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/setSelected">setSelected</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method adds or remove this accessible to the current selection.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/ExtendSelection" id="extendSelection" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/extendSelection">extendSelection</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method extends the current selection from its current accessible anchor node to this accessible.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/TakeSelection" id="extendSelection" name="takeSelection" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/takeSelection">takeSelection</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method selects this accessible node only.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/TakeFocus" id="takeFocus" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/takeFocus">takeFocus</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method focuses this accessible node.</dd><br>
<dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetActionName" id="takeFocus" name="getActionName" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getActionName">getActionName</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method retrieves the name of the accessible action at the given zero-based index.</dd> </dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/GetActionDescription" id="getActionDescription" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/getActionDescription">getActionDescription</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method retrieves the description of the accessible action at the given zero-based index.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/DoAction" id="getActionDescription" name="doAction" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/doAction">doAction</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">This method performs the accessible action at the given zero-based index. Action number <code>0</code> is the default action.</dd></dl>
<h3 name="Methods">Attributes</h3>
<dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Parent" id="parent" name="" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/parent">parent</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Parent node in accessible tree.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/NextSibling" id="parent" name="nextSibling" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/nextSibling">nextSibling</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Next sibling in accessible tree.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/PreviousSibling" id="previousSibling" name="PreviousSibling" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/previousSibling">previousSibling</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Previous sibling in accessible tree.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/FirstChild" id="previousSibling" name="firstChild" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/firstChild">firstChild</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">First child in accessible tree.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/LastChild" id="lastChild" name="lastChild" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/lastChild">lastChild</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Last child in accessible tree.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Children" id="lastChild" name="children" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/children">children</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Array of all this element's children.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/ChildCount" id="childCount" name="childCount" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/childCount">childCount</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Number of accessible children.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/IndexInParent" id="childCount" name="indexInParent" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/indexInParent">indexInParent</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">The 0-based index of this accessible in its parent's list of children, or <code>-1</code> if this accessible does not have a parent.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Name" id="indexInParent" name="name" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/name">name</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Accessible name -- the main text equivalent for this node.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Value" id="name" name="value" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/value">value</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Accessible value -- a number or a secondary text equivalent for this node. Widgets that use role attribute can force a value using the valuenow attribute.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Description" id="value" name="description" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/description">description</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Accessible description -- long text associated with this node.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/KeyboardShortcut" id="description" name="keyboardShortcut" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/keyboardShortcut">keyboardShortcut</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Provides localized string of accesskey name, such as Alt+D. The modifier may be affected by user and platform preferences. Usually <code>alt+letter</code>, or just the letter alone for menu items.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/DefaultKeyBinding" id="keyboardShortcut" name="defaultKeyBinding" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/defaultKeyBinding">defaultKeyBinding</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Provides localized string of global keyboard accelerator for default action, such as <code>Ctrl+O</code> for Open file.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Role" id="defaultKeyBinding" name="role" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/role">role</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Natural enumerated accessible role for the associated element. The values depend on platform because of variations. See the <code>ROLE_*</code> constants defined in <span class="lang lang-en"><code><a class="new" href="../../../../en/nsIAccessibleRole" rel="internal">nsIAccessibleRole</a></code></span>.This does not take into account role attribute as the <code>finalRole</code> does.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/FinalRole" id="role" name="finalRole" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/finalRole">finalRole</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Enumerated accessible role. The values depend on platform because of variations. See the <code>ROLE_*</code> constants defined in <span class="lang lang-en"><code><a class="new" href="../../../../en/nsIAccessibleRole" rel="internal">nsIAccessibleRole</a></code> </span>. Widgets can use role attribute to force the final role.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Help" id="finalRole" name="help" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/help">help</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Help text associated with node.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/FocusedChild" id="help" name="focusedChild" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/focusedChild">focusedChild</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Focused accessible child of node.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/Attributes" id="focusedChild" name="attributes" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/attributes">attributes</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Attributes of accessible.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/RelationsCount" id="attributes" name="relationsCount" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/relationsCount">relationsCount</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">Returns the number of accessible relations for this object.</dd></dl><dl style="margin: 0px 0px 1.7em; padding: 0px;"><dt style="font-style: normal; font-weight: bold;"><code style="color: rgb(37, 34, 29); font-weight: inherit;"><a class="internal" href="/En/NsIAccessible/NumActions" id="relationsCount" name="numActions" style="text-decoration: none; color: rgb(4, 137, 183) ! important; cursor: default;" title="En/NsIAccessible/numActions">numActions</a></code></dt><dd style="margin-left: 0px; margin-bottom: 0.5em; padding-left: 15px;">The number of accessible actions associated with this accessible.</dd></dl>
<p>  </p>
Revert to this revision