Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module ImageAdapter :: Class ImageAccInfoAdapter
[hide private]
[frames] | no frames]

Class ImageAccInfoAdapter

source code

??-159 --+
         |
        ImageAccInfoAdapter

Overrides DefaultNavAdapter to provide text information about images. Expects the subject to be a AEPor.

Adapts accessibles that provide the Image interface and have a role of image or icon.

Instance Methods [hide private]
string
getAccItemText(self)
Gets the accessible description of the image.
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

getAccItemText(self)

source code 
Gets the accessible description of the image. Ignores the given item offset because images shouldn't have children.
Returns: string
Accessible name of requested object
Raises:
  • LookupError - When the accessible object is dead