Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module ContainerAdapter :: Class ContainerAccActionAdapter
[hide private]
[frames] | no frames]

Class ContainerAccActionAdapter

source code

??-138 --+
         |
        ContainerAccActionAdapter

Overrides DefaultAccActionAdapter to provide information specific to containers that have STATE_MANAGES_DESCENDANTS. Expects the subject to be a AEPor.

Instance Methods [hide private]
boolean
setAccFocus(self)
Gives the subject accessible the focus when the item offset is None or one of its items when the offset is an integer.
source code
boolean
selectAcc(self, all=False)
Selects the accessible object implementing this interface when item offset is None and all is False.
source code
boolean
doAccAction(self, index)
Executes the accessible action given by the index on the item_offset.
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 = [IAccessibleAction]
Method Details [hide private]

when(subject)
Static Method

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

setAccFocus(self)

source code 
Gives the subject accessible the focus when the item offset is None or one of its items when the offset is an integer.
Returns: boolean
Did accessible accept (True) or refuse (False) the focus change?
Raises:
  • LookupError - When the accessible object is dead
  • NotImplementedError - When the accessible does not support an interface for setting focus

selectAcc(self, all=False)

source code 
Selects the accessible object implementing this interface when item offset is None and all is False. Selects all items when item offset is None and all is True. Otherwise, selects the one item indicated by the item offset in the subject AEPor.
Parameters:
  • all (boolean) - Select all items?
Returns: boolean
Did accessible accept (True) or refuse (False) the selection?
Raises:
  • LookupError - When the accessible object is dead
  • NotImplementedError - When the accessible does not support an interface for setting the selection

doAccAction(self, index)

source code 
Executes the accessible action given by the index on the item_offset.
Parameters:
  • index (integer) - Index of the action to execute
Returns: boolean
Did the action execute (True) or not (False)?
Raises:
  • LookupError - When the accessible object is dead
  • NotImplementedError - When the accessible does not support the action interface