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

Class HypertextAccInfoAdapter

source code

??-191 --+
         |
        HypertextAccInfoAdapter

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

Adapts subject accessibles that provide the pyLinAcc.Interfaces.IHypertext and pyLinAcc.Interfaces.IText 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 (POR) - POR 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
Decorators:
  • @pyLinAcc.errorToLookupError
Raises:
  • LookupError - When the accessible object is dead