Package org.eclipse.swt.accessibility
Class AccessibleTableAdapter
java.lang.Object
org.eclipse.swt.accessibility.AccessibleTableAdapter
- All Implemented Interfaces:
EventListener
,AccessibleTableListener
,SWTEventListener
This adapter class provides default implementations for the
methods in the
AccessibleTableListener
interface.
Classes that wish to deal with AccessibleTable
events can
extend this class and override only the methods that they are
interested in.
Many methods in this adapter return cell accessible objects,
which should implement AccessibleTableCellListener
.
- Since:
- 3.6
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deselects one column, leaving other selected columns selected (if any).void
Deselects one row, leaving other selected rows selected (if any).void
Deprecated.IAccessibleTable2::caption is deprecated, instead use the IA2_RELATION_LABELED_BY relation to create a relation between the table and its caption.void
Returns the accessible object at the specified row and column in the table.void
Returns the accessible object for the specified column in the table.void
Returns the total number of columns in the table.void
Returns the description text of the specified column in the table.void
Returns the accessible object for the column header.void
Returns the column header cells as an array of accessible objects.void
Returns the columns as an array of accessible objects.void
Returns the accessible object for the specified row in the table.void
Returns the total number of rows in the table.void
Returns the description text of the specified row in the table.void
Returns the accessible object for the row header.void
Returns the row header cells as an array of accessible objects.void
Returns the rows as an array of accessible objects.void
Returns the number of selected cells.void
Returns the currently selected cells.void
Returns the number of selected columns.void
Returns the column indexes that are currently selected.void
Returns the number of selected rows.void
Returns the row indexes that are currently selected.void
Deprecated.IAccessibleTable2::summary is deprecated, instead use the IA2_RELATION_DESCRIBED_BY relation to create a relation between the table and its summary.void
Returns the visible columns as an array of accessible objects.void
Returns the visible rows as an array of accessible objects.void
Returns a boolean value indicating whether the specified column is completely selected.void
Returns a boolean value indicating whether the specified row is completely selected.void
Selects a column.void
Selects a row.void
Selects a column and deselects all previously selected columns.void
Selects a row and deselects all previously selected rows.
-
Constructor Details
-
AccessibleTableAdapter
public AccessibleTableAdapter()
-
-
Method Details
-
deselectColumn
Deselects one column, leaving other selected columns selected (if any).- Specified by:
deselectColumn
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] column - 0 based index of the column to be unselected.
- [out] result - set to
ACC.OK
if the column was deselected.
-
deselectRow
Deselects one row, leaving other selected rows selected (if any).- Specified by:
deselectRow
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - 0 based index of the row to be unselected
- [out] result - set to
ACC.OK
if the row was deselected.
-
getCaption
Deprecated.IAccessibleTable2::caption is deprecated, instead use the IA2_RELATION_LABELED_BY relation to create a relation between the table and its caption.Returns the caption for the table.- Specified by:
getCaption
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessible - the caption for the table, or null if the table does not have a caption
-
getCell
Returns the accessible object at the specified row and column in the table.- Specified by:
getCell
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - the 0 based row index for which to retrieve the accessible cell
- [in] column - the 0 based column index for which to retrieve the accessible cell
- [out] accessible - the table cell at the specified row and column index, or null if the row or column index are not valid
-
getColumn
Returns the accessible object for the specified column in the table.- Specified by:
getColumn
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] column - the 0 based column index for which to retrieve the accessible column
- [out] accessible - the table column at the specified column index, or null if the column index is not valid
-
getColumnCount
Returns the total number of columns in the table.- Specified by:
getColumnCount
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] count - the number of columns in the table
-
getColumnDescription
Returns the description text of the specified column in the table.- Specified by:
getColumnDescription
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] column - the 0 based index of the column for which to retrieve the description
- [out] result - the description text of the specified column in the table, or null if the column does not have a description
-
getColumnHeader
Returns the accessible object for the column header.- Specified by:
getColumnHeader
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessible - an accessible object representing the column header, or null if there is no column header
-
getColumnHeaderCells
Returns the column header cells as an array of accessible objects.- Specified by:
getColumnHeaderCells
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - an array of accessible objects representing column header cells, or null if there are no column header cells
-
getColumns
Returns the columns as an array of accessible objects.- Specified by:
getColumns
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - an array of accessible objects representing columns, or null if there are no columns
-
getRow
Returns the accessible object for the specified row in the table.- Specified by:
getRow
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - the 0 based row index for which to retrieve the accessible row
- [out] accessible - the table row at the specified row index, or null if the row index is not valid
-
getRowCount
Returns the total number of rows in the table.- Specified by:
getRowCount
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] count - the number of rows in the table
-
getRowDescription
Returns the description text of the specified row in the table.- Specified by:
getRowDescription
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - the 0 based index of the row for which to retrieve the description
- [out] result - the description text of the specified row in the table, or null if the row does not have a description
-
getRowHeader
Returns the accessible object for the row header.- Specified by:
getRowHeader
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessible - an accessible object representing the row header, or null if there is no row header
-
getRowHeaderCells
Returns the row header cells as an array of accessible objects.- Specified by:
getRowHeaderCells
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - an array of accessible objects representing row header cells, or null if there are no row header cells
-
getRows
Returns the rows as an array of accessible objects.- Specified by:
getRows
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - an array of accessible objects representing rows, or null if there are no rows
-
getSelectedCellCount
Returns the number of selected cells.- Specified by:
getSelectedCellCount
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] count - the number of cells currently selected
-
getSelectedCells
Returns the currently selected cells.- Specified by:
getSelectedCells
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - array containing the selected accessible cells
-
getSelectedColumnCount
Returns the number of selected columns.- Specified by:
getSelectedColumnCount
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] count - the number of columns currently selected
-
getSelectedColumns
Returns the column indexes that are currently selected.- Specified by:
getSelectedColumns
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] selected - an array of 0 based column indexes of selected columns
-
getSelectedRowCount
Returns the number of selected rows.- Specified by:
getSelectedRowCount
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] count - the number of rows currently selected
-
getSelectedRows
Returns the row indexes that are currently selected.- Specified by:
getSelectedRows
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] selected - an array of 0 based row indexes of selected rows
-
getSummary
Deprecated.IAccessibleTable2::summary is deprecated, instead use the IA2_RELATION_DESCRIBED_BY relation to create a relation between the table and its summary.Returns the summary description of the table.- Specified by:
getSummary
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessible - the summary for the table, or null if the table does not have a summary
-
getVisibleColumns
Returns the visible columns as an array of accessible objects.- Specified by:
getVisibleColumns
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - an array of accessible objects representing visible columns, or null if there are no visible columns
-
getVisibleRows
Returns the visible rows as an array of accessible objects.- Specified by:
getVisibleRows
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [out] accessibles - an array of accessible objects representing visible rows, or null if there are no visible rows
-
isColumnSelected
Returns a boolean value indicating whether the specified column is completely selected.- Specified by:
isColumnSelected
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] column - 0 based index of the column for which to determine whether it is selected
- [out] isSelected - true if the specified column is selected completely, and false otherwise
-
isRowSelected
Returns a boolean value indicating whether the specified row is completely selected.- Specified by:
isRowSelected
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - 0 based index of the row for which to determine whether it is selected
- [out] isSelected - true if the specified row is selected completely, and false otherwise
-
selectColumn
Selects a column.- Specified by:
selectColumn
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] column - 0 based index of the column to be selected
- [out] result - set to
ACC.OK
if the column was selected.
-
selectRow
Selects a row.- Specified by:
selectRow
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - 0 based index of the row to be selected
- [out] result - set to
ACC.OK
if the row was selected.
-
setSelectedColumn
Selects a column and deselects all previously selected columns.- Specified by:
setSelectedColumn
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] column - 0 based index of the column to be selected
- [out] result - set to
ACC.OK
if the column was selected.
-
setSelectedRow
Selects a row and deselects all previously selected rows.- Specified by:
setSelectedRow
in interfaceAccessibleTableListener
- Parameters:
e
- an event object containing the following fields:- [in] row - 0 based index of the row to be selected
- [out] result - set to
ACC.OK
if the row was selected.
-