You are viewing information archived from Mozilla.org on 2015-08-05.

interface nsIAccessibleSelection

the nsIAccessibleSelection interface provided by MAI which users can get accessible children of a DOM object which is currently selected and also can do some behaviors such as adding selection, removing selection, clearing selection



Public Fields



[more] readonly attribute long selectionCount
A long type readonly attributeReturns the number of accessible children currently selected



Public Methods



[more] void addSelection (in long i)
Adds the specified accessible child of the object to the object's selection.
[more] void removeSelection (in long i)
Removes the specified child of the object from the object's selection.
[more] void clearSelection ()
Clears all the selection in the object so that no children in the object are selected.
[more] nsIAccessible refSelection (in long i)
Returns a reference to the accessible object representing the specified selected child of the object.
[more] boolean isChildSelected (in long i)
Determines if the current child of this object is selected
[more] boolean selectAllSelection ()
method selectAllSelection Causes every child of the object to be selected if the object supports multiple selections.


Documentation

the nsIAccessibleSelection interface provided by MAI which users can get accessible children of a DOM object which is currently selected and also can do some behaviors such as adding selection, removing selection, clearing selection
o readonly attribute long selectionCount
A long type readonly attributeReturns the number of accessible children currently selected




o void addSelection(in long i)
Adds the specified accessible child of the object to the object's selection.


Parameters:
i - index of the specified accessible child

Returns:
void



o void removeSelection(in long i)
Removes the specified child of the object from the object's selection.


Parameters:
i - long : index of the specified accessible child

Returns:
void



o void clearSelection()
Clears all the selection in the object so that no children in the object are selected.


Parameters:
none -

Returns:
void



o nsIAccessible refSelection(in long i)
Returns a reference to the accessible object representing the specified selected child of the object.


Parameters:
i - long : index of the specified accessible child

Returns:
a nsIAccessible object



o boolean isChildSelected(in long i)
Determines if the current child of this object is selected


Parameters:
i - long : index of the specified accessible child

Returns:
a boolean result. if the child is selected, return true; else return false



o boolean selectAllSelection()
method selectAllSelection Causes every child of the object to be selected if the object supports multiple selections.


Parameters:
none -

Returns:
a boolean result, if the object does not accept multiple selection, return false.




This class has no child classes.




Alphabetic index



This page was generated with the help of DOC++ .