nsIAccessibleSelectable

IID:34d268d6-1dd2-11b2-9d63-83a5e0ada290
Inherits From:nsISupports
Status:UNDER_REVIEW

An interface for the accessibility module and in-process accessibility clients for dealing with getting and changing the selection of accessible nodes.


Properties

readonly PRInt32 selectionCount

Returns the number of accessible children currently selected.


Methods

void addChildToSelection ( PRInt32 index ) void clearSelection ( ) nsIArray GetSelectedChildren ( ) PRBool isChildSelected ( PRInt32 index ) nsIAccessible refSelection ( PRInt32 index ) void removeChildFromSelection ( PRInt32 index ) PRBool selectAllSelection ( )

void addChildToSelection ( PRInt32 index )

Adds the specified accessible child of the object to the object's selection. If the specified object is already selected, then it does nothing.

Arguments:
index

void clearSelection ( )

Clears the selection in the object so that no children in the object are selected.


nsIArray GetSelectedChildren ( )

Return an nsIArray of selected nsIAccessible children


PRBool isChildSelected ( PRInt32 index )

Determines if the current child of this object is selected

Arguments:
index
Returns:
Returns true if the child is selected, false if not.

nsIAccessible refSelection ( PRInt32 index )

Returns a reference to the accessible object representing the specified selected child of the object.

Arguments:
index: Zero-based selected accessible child index
Returns:
The nth selected accessible child

void removeChildFromSelection ( PRInt32 index )

Removes the specified child of the object from the object's selection. If the specified object was not selected, then it does nothing.

Arguments:
index

PRBool selectAllSelection ( )

Select all children

Returns:
If the object does not accept multiple selection, return false. Otherwise, returns true.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com