Package Adapters :: Package ATSPI :: Module DefaultEventHandler
[hide private]
[frames] | no frames]

Module DefaultEventHandler

source code

Defines default AccAdapt.Adapters for the AEInterfaces.IEventHandler interface on pyLinAcc.Accessible objects.


Authors:
Pete Brunet, Peter Parente, Brett Clippingdale

Organization: IBM Corporation

Copyright: Copyright (c) 2005, 2007 IBM Corporation

License: The BSD License

All rights reserved. This program and the accompanying materials are made available under the terms of the BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.php

Classes [hide private]
  DefaultEventHandlerAdapter
Adapts all events from AT-SPI accessibles to the interfaces defined in provides.
Variables [hide private]
dictionary AE_MAP = {ViewChange: ['window:activate', 'window:deactivate',...
Mapping from AEEvents to raw events that must be registered to generate them
dictionary EVENT_HANDLERS = {'keyboard:press': '_handleKeyPressEvent', 'w...
Maps event names to method names to be called to handle them
Variables Details [hide private]

AE_MAP

Mapping from AEEvents to raw events that must be registered to generate them
Type:
dictionary
Value:
{ViewChange: ['window:activate', 'window:deactivate', 'window:create',\
 'window:destroy'], FocusChange: ['focus', 'object:state-changed:focus\
ed'], CaretChange: ['object:text-caret-moved', 'object:text-changed'],\
 ChildrenChange: ['object:children-changed'], PropertyChange: ['object\
:property-change'], SelectorChange: ['object:text-selection-changed', \
'object:selection-changed', 'object:active-descendant-changed'], State\
Change: ['object:state-changed:expanded', 'object:state-changed:checke\
d', 'object:state-changed:enabled', 'object:state-changed:sensitive', \
...

EVENT_HANDLERS

Maps event names to method names to be called to handle them
Type:
dictionary
Value:
{'keyboard:press': '_handleKeyPressEvent', 'window:activate': '_handle\
ViewChange', 'focus': '_handleFocusEvent', 'object:state-changed:focus\
ed': '_handleFocusEvent', 'object:text-changed:insert': '_handleTextEv\
ent', 'object:text-changed:delete': '_handleTextEvent', 'object:text-c\
aret-moved': '_handleCaretEvent', 'object:text-selection-changed': '_h\
andleTextSelectionEvent', 'object:selection-changed': '_handleSelectio\
nChangedEvent', 'object:active-descendant-changed': '_handleDescendant\
Event', 'object:property-change:accessible-name': '_handlePropertyEven\
...