Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module ComboboxAdapter :: Class ComboBoxNavAdapter
[hide private]
[frames] | no frames]

Class ComboBoxNavAdapter

source code

??-134 --+
         |
        ComboBoxNavAdapter

Overrides DefaultNavAdapter to provide navigation over text lines as items and to avoid traversing text children as separate accessible children in the IAccessibleNav interface.

Adapts accessibles that have a role of terminal or have a state of multiline, single line, or editable and provide the Text interface. Does not adapt AEPor accessibles with role of page tab.

Instance Methods [hide private]
AEPor
getNextAcc(self)
Gets the next accessible relative to the one providing this interface.
source code
AEPor
getPrevAcc(self)
Gets the previous accessible relative to the one providing this interface.
source code
AEPor
getParentAcc(self)
Gets the parent accessible relative to the one providing this interface.
source code
AEPor
getFirstAccChild(self)
Gets the first accessible child in the combobox list.
source code
AEPor
getLastAccChild(self)
Gets the last accessible child in combobox list.
source code
AEPor
_findListHead(self, cb)
Performs a depth only search to find the first list item in a combobox list.
source code
Static Methods [hide private]
boolean
when(subject)
Tests if the given subject can be adapted by this class.
source code
Class Variables [hide private]
  provides = [IItemNav, IAccessibleNav]
Method Details [hide private]

when(subject)
Static Method

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

getNextAcc(self)

source code 
Gets the next accessible relative to the one providing this interface.
Returns: AEPor
Point of regard to the next accessible
Raises:
  • IndexError - When there is no next accessible
  • LookupError - When lookup for the next accessible fails even though it may exist

getPrevAcc(self)

source code 
Gets the previous accessible relative to the one providing this interface.
Returns: AEPor
Point of regard to the previous accessible
Raises:
  • IndexError - When there is no previous accessible
  • LookupError - When lookup for the previous accessible fails even though it may exist

getParentAcc(self)

source code 
Gets the parent accessible relative to the one providing this interface.
Returns: AEPor
Point of regard to the parent accessible
Raises:
  • LookupError - When lookup for the parent accessible fails because it does not exist

getFirstAccChild(self)

source code 
Gets the first accessible child in the combobox list.
Returns: AEPor
Point of regard to the first list item
Raises:
  • LookupError - When lookup for child fails because it does not exist

getLastAccChild(self)

source code 
Gets the last accessible child in combobox list.
Returns: AEPor
Point of regard to the last child accessible
Raises:
  • LookupError - When lookup for child fails because it does not exist

_findListHead(self, cb)

source code 
Performs a depth only search to find the first list item in a combobox list. Could be of type menu item or list item.
Returns: AEPor
Point of regard to the first child accessible
Raises:
  • LookupError - When lookup for child fails because it does not exist