Class TableNavAdapter
source code
??-214 --+
|
TableNavAdapter
Overrides DefaultNavAdapter to provide navigation over table cells
as items. Expects the subject to be a POR. Does not walk headers. Those can be gotten and
reported separately as context information.
Note that not all tables properly respond to requests for accessibles
at (x,y) coordinates on the screen. Most tables seem to always return
their first accessible (not first visible accessible) for the top left
corner and last accessible (not last visible accessible) for the bottom
right corner, but this depends on the application.
Adapts subject accessibles that provide the pyLinAcc.Interfaces.ITable
interface.
|
2-tuple of integer
|
|
|
POR
|
getNextItem(self,
only_visible=True)
Gets the next item relative to the one indicated by the POR providing this
interface. |
source code
|
|
|
POR
|
getPrevItem(self,
only_visible=True)
Gets the previous item relative to the one indicated by the POR providing this
interface. |
source code
|
|
|
POR
|
getLastItem(self,
only_visible=True)
Gets the last item relative to the one indicated by the POR providing this
interface. |
source code
|
|
|
POR
|
getFirstItem(self,
only_visible=True)
Gets the first item relative to the one indicated by the POR providing this
interface. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
boolean
|
when(subject)
Tests if the given subject can be adapted by this class. |
source code
|
|
|
|
provides = [IAccessibleNav, IItemNav]
|
|
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
|
|
Gets the item offsets of the first and last items in a table of
cells.
- Parameters:
only_visible (boolean) - Only consider the first and last cells visible in the table
(True) or the absolute first and last cells (False)?
- Returns: 2-tuple of integer
- First and last item offsets
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
LookupError - When the first or last item or parent accessible is not available
|
|
Gets the next item relative to the one indicated by the POR providing this
interface.
- Parameters:
only_visible (boolean) - True when Item in the returned POR must be visible
- Returns: POR
- Point of regard to the next item in the same accessible
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
IndexError - When there is no next item
LookupError - When lookup for the next item fails even though it may exist
|
|
Gets the previous item relative to the one indicated by the POR providing this
interface.
- Parameters:
only_visible (boolean) - True when Item in the returned POR must be visible
- Returns: POR
- Point of regard to the previous item in the same accessible
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
IndexError - When there is no previous item
LookupError - When lookup for the previous item fails even though it may exist
|
|
Gets the last item relative to the one indicated by the POR providing this
interface.
- Parameters:
only_visible (boolean) - True when Item in the returned POR must be visible
- Returns: POR
- Point of regard to the last item in the same accessible
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
LookupError - When lookup for the last item fails even though it may exist
|
|
Gets the first item relative to the one indicated by the POR providing this
interface.
- Parameters:
only_visible (boolean) - True when Item in the returned POR must be visible
- Returns: POR
- Point of regard to the last item in the same accessible
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
LookupError - When lookup for the last item fails even though it may exist
|
|
Always raises LookupError. Tables have items but no children.
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
|
|
Always raises LookupError. Tables have items but no children.
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
|
|
Always raises LookupError. Tables have items but no children.
- Decorators:
@pyLinAcc.errorToLookupError
- Raises:
|