GetState

« nsIAccessible Page

Summary

This method retrieves states of the accessible.

 void getState(
   out unsigned long aState,
   out unsigned long aExtraState
 );

Parameters

aState
[out] The first bit field (See STATE_* constants in states documentation).
aExtraState
[out] The second bit field (See EXT_STATE_* constants in states documentation).

Exceptions thrown

NS_ERROR_FAILURE
Indicates that the accessible is unattached from the accessible tree.

Remarks

Accessible states are stored as bit fields which describe boolean properties of node. Many states are only valid given a certain role attribute that supports them. Refer to states documentation for more information.