Package NVDAObjects :: Package IAccessible :: Module sysTreeView32 :: Class BrokenCommctrl5Item
[hide private]
[frames] | no frames]

Class BrokenCommctrl5Item

source code

                   object --+                    
                            |                    
baseObject.AutoPropertyObject --+                
                                |                
      baseObject.ScriptableObject --+            
                                    |            
                           NVDAObject --+        
                                        |        
                            window.Window --+    
                                            |    
                                  IAccessible --+
                                                |
                                               BrokenCommctrl5Item

Handle broken CommCtrl v5 SysTreeView32 items in 64 bit applications. In these controls, IAccessible fails to retrieve any info, so we must retrieve it using UIA. We do this by obtaining a UIA NVDAObject and redirecting properties to it. We can't simply use UIA objects alone for these controls because UIA events are also broken.

Nested Classes [hide private]

Inherited from NVDAObject: TextInfo, __metaclass__

Instance Methods [hide private]
 
__init__(self, _uiaObj=None, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
initOverlayClass(self) source code
int
_get_role(self)
The role or type of control this object represents (example: button, list, dialog).
source code
basestring
_get_name(self)
The name or label of this object (example: the text of a button).
source code
basestring
_get_description(self)
The description or help text of this object.
source code
basestring
_get_value(self)
The value of this object (example: the current percentage of a scrollbar, the selected option in a combo box).
source code
set of int
_get_states(self)
Retreaves the current states of this object (example: selected, focused).
source code
dict
_get_positionInfo(self)
Retreaves position information for this object such as its level, its index with in a group, and the number of items in that group.
source code
tuple of int
_get_location(self)
The location of this object on the screen.
source code
 
_makeRelatedObj(self, uiaObj) source code
NVDAObject or None
_get_parent(self)
Retreaves this object's parent (the object that contains this object).
source code
NVDAObject or None
_get_next(self)
Retreaves the object directly after this object with the same parent.
source code
NVDAObject or None
_get_previous(self)
Retreaves the object directly before this object with the same parent.
source code
NVDAObject or None
_get_firstChild(self)
Retreaves the first object that this object contains.
source code
NVDAObject or None
_get_lastChild(self)
Retreaves the last object that this object contains.
source code
list of NVDAObject
_get_children(self)
Retreaves a list of all the objects directly contained by this object (who's parent is this object).
source code

Inherited from IAccessible: doAction, event_IA2AttributeChange, event_alert, event_caret, event_selection, event_selectionAdd, event_selectionRemove, event_selectionWithIn, event_valueChange, findOverlayClasses, getActionName, isDuplicateIAccessibleEvent, isPointInObject, scrollIntoView, setFocus

Inherited from IAccessible (private): _getIA2RelationFirstTarget, _get_IA2Attributes, _get_IAccessibleIdentity, _get_IAccessibleRole, _get_IAccessibleStates, _get_TextInfo, _get__IA2Relations, _get_actionCount, _get_activeChild, _get_allowIAccessibleChildIDAndChildCountForPositionInfo, _get_childCount, _get_columnCount, _get_columnNumber, _get_decodedAccDescription, _get_devInfo, _get_embeddingTextInfo, _get_flowsFrom, _get_flowsTo, _get_groupName, _get_hasFocus, _get_indexInParent, _get_isPresentableFocusAncestor, _get_keyboardShortcut, _get_labeledBy, _get_presentationType, _get_rowCount, _get_rowNumber, _get_shouldAllowIAccessibleFocusEvent, _get_table, _isEqual

Inherited from window.Window: correctAPIForRelation, redraw

Inherited from window.Window (private): _get_displayText, _get_isInForeground, _get_isWindowUnicode, _get_processHandle, _get_processID, _get_windowClassName, _get_windowControlID, _get_windowStyle, _get_windowText, _get_windowThreadID

Inherited from NVDAObject: __eq__, __ne__, event_becomeNavigatorObject, event_descriptionChange, event_focusEntered, event_foreground, event_gainFocus, event_mouseMove, event_nameChange, event_stateChange, event_typedCharacter, makeTextInfo, reportFocus

Inherited from NVDAObject (private): _findSimpleNext, _get_appModule, _get_basicText, _get_container, _get_defaultActionIndex, _get_flatReviewPosition, _get_isProtected, _get_recursiveDescendants, _get_simpleFirstChild, _get_simpleLastChild, _get_simpleNext, _get_simpleParent, _get_simplePrevious, _get_statusBar, _get_treeInterceptor, _get_treeInterceptorClass, _set_treeInterceptor

Inherited from baseObject.ScriptableObject: bindGesture, bindGestures, clearGestureBindings, getScript

Inherited from baseObject.AutoPropertyObject: invalidateCache

Inherited from baseObject.AutoPropertyObject (private): _getPropertyViaCache

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
getFirstItem(cls, treeObj)
Get an instance for the first item in a given tree view.
source code

Inherited from IAccessible: getPossibleAPIClasses, kwargsFromSuper, windowHasExtraIAccessibles

Inherited from window.Window: normalizeWindowClassName

Inherited from NVDAObject: findBestAPIClass

Inherited from baseObject.AutoPropertyObject: invalidateCaches

Static Methods [hide private]

Inherited from NVDAObject: objectFromPoint, objectInForeground, objectWithFocus

Class Variables [hide private]

Inherited from IAccessible: IA2UniqueID, IAccessibleTableUsesTableCellIndexAttrib, hasEncodedAccDescription, re_positionInfoEncodedAccDescription

Inherited from window.Window: normalizedWindowClassNameCache

Inherited from NVDAObject: beTransparentToMouse, cachePropertiesByDefault, presType_content, presType_layout, presType_unavailable, tableCellCoordsInName

Instance Variables [hide private]

Inherited from IAccessible: IAccessibleChildID

Inherited from window.Window: windowClassName, windowControlID, windowHandle, windowProcessID, windowText

Inherited from NVDAObject: textRepresentationLineLength

Inherited from NVDAObject (private): _mouseEntered

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, _uiaObj=None, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • pacc - a pointer to an IAccessible object
  • child - A child ID that will be used on all methods of the IAccessible pointer
  • hwnd - the window handle, if known
  • objectID - the objectID for the IAccessible Object, if known
Overrides: object.__init__
(inherited documentation)

_get_role(self)

source code 

The role or type of control this object represents (example: button, list, dialog).

Returns: int
a ROLE_* constant from controlTypes
Overrides: NVDAObject._get_role
(inherited documentation)

_get_name(self)

source code 

The name or label of this object (example: the text of a button).

Returns: basestring
Overrides: NVDAObject._get_name
(inherited documentation)

_get_description(self)

source code 

The description or help text of this object.

Returns: basestring
Overrides: NVDAObject._get_description
(inherited documentation)

_get_value(self)

source code 

The value of this object (example: the current percentage of a scrollbar, the selected option in a combo box).

Returns: basestring
Overrides: NVDAObject._get_value
(inherited documentation)

_get_states(self)

source code 

Retreaves the current states of this object (example: selected, focused).

Returns: set of int
a set of STATE_* constants from controlTypes.
Overrides: NVDAObject._get_states
(inherited documentation)

_get_positionInfo(self)

source code 

Retreaves position information for this object such as its level, its index with in a group, and the number of items in that group.

Returns: dict
a dictionary containing any of level, groupIndex and similarItemsInGroup.
Overrides: NVDAObject._get_positionInfo
(inherited documentation)

_get_location(self)

source code 

The location of this object on the screen.

Returns: tuple of int
left, top, width and height of the object.
Overrides: NVDAObject._get_location
(inherited documentation)

_get_parent(self)

source code 

Retreaves this object's parent (the object that contains this object).

Returns: NVDAObject or None
the parent object if it exists else None.
Overrides: NVDAObject._get_parent
(inherited documentation)

_get_next(self)

source code 

Retreaves the object directly after this object with the same parent.

Returns: NVDAObject or None
the next object if it exists else None.
Overrides: NVDAObject._get_next
(inherited documentation)

_get_previous(self)

source code 

Retreaves the object directly before this object with the same parent.

Returns: NVDAObject or None
the previous object if it exists else None.
Overrides: NVDAObject._get_previous
(inherited documentation)

_get_firstChild(self)

source code 

Retreaves the first object that this object contains.

Returns: NVDAObject or None
the first child object if it exists else None.
Overrides: NVDAObject._get_firstChild
(inherited documentation)

_get_lastChild(self)

source code 

Retreaves the last object that this object contains.

Returns: NVDAObject or None
the last child object if it exists else None.
Overrides: NVDAObject._get_lastChild
(inherited documentation)

_get_children(self)

source code 

Retreaves a list of all the objects directly contained by this object (who's parent is this object).

Returns: list of NVDAObject
Overrides: NVDAObject._get_children
(inherited documentation)