Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module TableAdapter :: Class DegenerateTableEventHandlerAdapter
[hide private]
[frames] | no frames]

Class DegenerateTableEventHandlerAdapter

source code

??-166 --+
         |
        DegenerateTableEventHandlerAdapter

Overrides DefaultEventHandlerAdapter to generate selector events on selection change. Does not generate the ideal selector events on focus because the degenerate subject does not implement the Selection interface. As a result, the active descendant cannot be determined. Expects the subject to be a raw pyatspi.Accessibility.Accessible.

Adapts subject accessibles that provide the pyatspi.Accessibility.Accessible..ITable interface.

Instance Methods [hide private]
tuple of AEEvent
_handleDescendantEvent(self, event, **kwargs)
Creates an AEEvent.SelectorChange indicating the "selector" moved in this accessible.
source code
AEEvent.SelectorChange
_getSelectorEvent(self, accessible, item_offset, **kwargs)
Creates an AEEvent.SelectorChange indicating the selector moved in this accessible.
source code
Static Methods [hide private]
boolean
when(subject)
Tests if the given subject can be adapted by this class.
source code
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

_handleDescendantEvent(self, event, **kwargs)

source code 
Creates an AEEvent.SelectorChange indicating the "selector" moved in this accessible.
Parameters:
  • event (pyatspi.event.Event) - Raw decendent changed event
  • kwargs (dictionary) - Parameters to be passed to any created AEEvent
Returns: tuple of AEEvent
AEEvent.SelectorChange

_getSelectorEvent(self, accessible, item_offset, **kwargs)

source code 

Creates an AEEvent.SelectorChange indicating the selector moved in this accessible.

This method corrects for the possibility that the selected item actually have children that have the important information which are themselves not selected but returned as children of the even source. Right now, the last child in such a case appears to carry the information. More robust processing may be needed in the future.
Parameters:
  • accessible (pyatspi.Accessibility.Accessible) - Accessible that generated this event
  • item_offset (integer) - Offset of item involved in the selection event
  • kwargs (dictionary) - Parameters to be passed to any created AEEvent
Returns: AEEvent.SelectorChange
Selection event