Package Adapters :: Package ATSPI :: Module TableAdapter :: Class TableEventHandlerAdapter
[hide private]
[frames] | no frames]

Class TableEventHandlerAdapter

source code

                        ??-211 --+    
                                 |    
DegenerateTableEventHandlerAdapter --+
                                     |
                                    TableEventHandlerAdapter

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

Adapts subject accessibles that provide the pyLinAcc.Interfaces.ISelection, interface and have ROLE_TABLE or ROLE_TREE_TABLE.

Instance Methods [hide private]
tuple of AEEvent
_handleFocusEvent(self, event, **kwargs)
Creates an AEEvent.FocusChange indicating that the accessible being adapted has gained the focus.
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 = [IEventHandler]
Method Details [hide private]

when(subject)
Static Method

source code 

Tests if the given subject can be adapted by this class.

Parameters:
  • subject (pyLinAcc.Accessible) - Accessible to test
Returns: boolean
True when the subject meets the condition named in the docstring for this class, False otherwise
Overrides: DegenerateTableEventHandlerAdapter.when

_handleFocusEvent(self, event, **kwargs)

source code 

Creates an AEEvent.FocusChange indicating that the accessible being adapted has gained the focus. Also creates a AEEvent.SelectorChange. These two AEEvents will be posted by the caller.

Parameters:
Returns: tuple of AEEvent
AEEvent.FocusChange and AEEvent.SelectorChange