Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module TreeAdapter :: Class TreeAccInfoAdapter
[hide private]
[frames] | no frames]

Class TreeAccInfoAdapter

source code

??-172 --+
         |
        TreeAccInfoAdapter

Overrides TableAccInfoAdapter to generate selector events on focus and on selection. Expects the subject to be a pyatspi.Accessible.

Adapts subject accessibles that provide the pyatspi.Accessibility.Accessible.Table interface and have ROLE_TREE_TABLE.

Instance Methods [hide private]
integer
getAccLevel(self)
Gets the level of a node in a tree where zero is the root.
source code
Static Methods [hide private]
boolean
when(por)
Tests if the given subject can be adapted by this class.
source code
Class Variables [hide private]
  provides = [IAccessibleInfo]
Method Details [hide private]

when(por)
Static Method

source code 
Tests if the given subject can be adapted by this class.
Parameters:
  • por (AEPor) - Point of regard to test
Returns: boolean
True when the subject meets the condition named in the docstring for this class, False otherwise

getAccLevel(self)

source code 
Gets the level of a node in a tree where zero is the root.
Returns: integer
Level of the node
Raises:
  • NotImplementedError - When a tree doesn't support the NODE_OF accessible relation