Package AccessEngine :: Package AEAccAdapters :: Package ATSPI :: Module TableAdapter :: Class TableAccInfoAdapter
[hide private]
[frames] | no frames]

Class TableAccInfoAdapter

source code

??-169 --+
         |
        TableAccInfoAdapter

Overrides ContainerAccInfoAdapter to generate selector events on focus and on selection. Expects the subject to be a pyatspi.Accessibility.Accessible.

Adapts subject accessibles that provide the pyatspi.Accessibility.Accessible.Table interface and have ROLE_TABLE.

Instance Methods [hide private]
integer
getAccRow(self)
Gets the row of an item in a table.
source code
integer
getAccColumn(self)
Gets the column of an item in a table.
source code
integer
getAccRowColIndex(self, row, col)
Gets the 1D index of the cell at the given 2D row and column.
source code
string
getAccRowHeader(self)
Gets the text description of a row in a table.
source code
string
getAccColumnHeader(self)
Gets the text description of a column in a table.
source code
2-tuple of integer
getAccTableExtents(self)
Returns the number of rows and columns in the table.
source code
Static Methods [hide private]
boolean
when(por)
Tests if the given POR can be adapted by this class.
source code
Class Variables [hide private]
  provides = [IAccessibleInfo]
Method Details [hide private]

when(por)
Static Method

source code 
Tests if the given POR can be adapted by this class.
Parameters:
  • por (AEPor) - Accessible to test
Returns: boolean
True when the subject meets the condition named in the docstring for this class, False otherwise

getAccRow(self)

source code 
Gets the row of an item in a table.
Returns: integer
Zero indexed row of the item
Raises:
  • LookupError - When the table or item is no longer valid

getAccColumn(self)

source code 
Gets the column of an item in a table.
Returns: integer
Zero indexed column of the item
Raises:
  • LookupError - When the table or item is no longer valid

getAccRowColIndex(self, row, col)

source code 
Gets the 1D index of the cell at the given 2D row and column.
Parameters:
  • row (integer) - Row index
  • col (integer) - Column index
Returns: integer
1D index into the table
Raises:
  • IndexError - When the row/column offsets are invalid
  • LookupError - When the table is no longer valid

getAccRowHeader(self)

source code 
Gets the text description of a row in a table.
Returns: string
The descriptive text.
Raises:
  • LookupError - When the table or item is no longer valid

getAccColumnHeader(self)

source code 
Gets the text description of a column in a table.
Returns: string
The descriptive text.
Raises:
  • LookupError - When the table or item is no longer valid

getAccTableExtents(self)

source code 
Returns the number of rows and columns in the table.
Returns: 2-tuple of integer
Count of rows and columns
Raises:
  • LookupError - When the table is no longer valid