javax.accessibility
Interface AccessibleExtendedTable

All Superinterfaces:
AccessibleTable
All Known Implementing Classes:
JTable.AccessibleJTable

public interface AccessibleExtendedTable
extends AccessibleTable

Objects which present 2-D tables with the extension of a flat address space should implement this interface. Accessibility software can use the implementations of this interface to better manipulate the table.

The AccessibleContext.getAccessibleTable() method should return an instance of this interface only when it is supported.

Since:
1.2
See Also:
Accessible, AccessibleContext, AccessibleContext.getAccessibleTable()

Method Summary
 int getAccessibleColumn(int index)
          Returns the column number of an index in the table.
 int getAccessibleIndex(int r, int c)
          Returns the cell number for a row-major address from (0,0).
 int getAccessibleRow(int index)
          Returns the row number of an index in the table.
 
Methods inherited from interface javax.accessibility.AccessibleTable
getAccessibleAt, getAccessibleCaption, getAccessibleColumnCount, getAccessibleColumnDescription, getAccessibleColumnExtentAt, getAccessibleColumnHeader, getAccessibleRowCount, getAccessibleRowDescription, getAccessibleRowExtentAt, getAccessibleRowHeader, getAccessibleSummary, getSelectedAccessibleColumns, getSelectedAccessibleRows, isAccessibleColumnSelected, isAccessibleRowSelected, isAccessibleSelected, setAccessibleCaption, setAccessibleColumnDescription, setAccessibleColumnHeader, setAccessibleRowDescription, setAccessibleRowHeader, setAccessibleSummary
 

Method Detail

getAccessibleRow

int getAccessibleRow(int index)
Returns the row number of an index in the table.

Parameters:
index - the cell index, in row-major form from (0,0)
Returns:
the row number, or -1 if out of bounds

getAccessibleColumn

int getAccessibleColumn(int index)
Returns the column number of an index in the table.

Parameters:
index - the cell index, in row-major form from (0,0)
Returns:
the column number, or -1 if out of bounds

getAccessibleIndex

int getAccessibleIndex(int r,
                       int c)
Returns the cell number for a row-major address from (0,0).

Parameters:
r - the row
c - the column
Returns:
the cell index