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

Class TreeAccInfoAdapter

source code

??-201 --+
         |
        TreeAccInfoAdapter

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

Adapts subject accessibles that provide the pyLinAcc.Interfaces.ITable 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 (POR) - 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
Decorators:
  • @pyLinAcc.errorToLookupError
Raises:
  • NotImplementedError - When a tree doesn't support the NODE_OF accessible relation