Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module HypertextAdapter :: Class HypertextAccInfoAdapter
[hide private]
[frames] | no frames]

Class HypertextAccInfoAdapter

source code

??-155 --+
         |
        HypertextAccInfoAdapter

Overrides DefaultNavAdapter to provide information about hypertext objects. Expects the subject to be a AEPor.

Adapts subject accessibles that provide the pyatspi.Accessibility.Accessible.Hypertext and pyatspi.Accessibility.Accessible.Hypertext interfaces.

Instance Methods [hide private]
boolean
allowsAccEmbeds(self)
Always True.
source code
string
getAccItemText(self)
Gets a chunk of accessible text past the embed character indicated by the item offset to the next embed character or end of line.
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

allowsAccEmbeds(self)

source code 
Always True. Hypertext allows embedding.
Returns: boolean
True

getAccItemText(self)

source code 
Gets a chunk of accessible text past the embed character indicated by the item offset to the next embed character or end of line.
Returns: string
Accessible text of requested item
Raises:
  • LookupError - When the accessible object is dead