Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module PopupAdapter :: Class MenuPopupAccInfoAdapter
[hide private]
[frames] | no frames]

Class MenuPopupAccInfoAdapter

source code

??-163 --+
         |
        MenuPopupAccInfoAdapter

Overrides DefaultNavAdapter to provide correct visibility information about menus and menu items. Expects the subject to be a AEPor.

Adapts accessibles that have the string "menu" in their role names (unlocalized) and a parent with ROLE_MENU.

Instance Methods [hide private]
boolean
isAccVisible(self)
Gets if a menu item (item, check item, submenu, etc.) is visible by testing if its parent menu is selected.
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 = [IAccessibleInfo]
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

isAccVisible(self)

source code 
Gets if a menu item (item, check item, submenu, etc.) is visible by testing if its parent menu is selected.
Returns: boolean
Does the accessible consider itself visible?
Raises:
  • LookupError - When the accessible object is dead