javax.swing
protected class JTable.AccessibleJTable extends AccessibleJComponent implements AccessibleSelection, ListSelectionListener, TableModelListener, TableColumnModelListener, CellEditorListener, PropertyChangeListener, AccessibleExtendedTable
JTable
.
Nested Class Summary | |
---|---|
protected class | JTable.AccessibleJTable.AccessibleJTableCell
Provides accessibility support for table cells.
|
protected class | JTable.AccessibleJTable.AccessibleJTableModelChange |
Constructor Summary | |
---|---|
protected | AccessibleJTable()
Creates a new AccessibleJTable .
|
Method Summary | |
---|---|
void | addAccessibleSelection(int i)
Adds the accessible child with the specified index i to the
selection.
|
void | clearAccessibleSelection()
Deselects all selected accessible children. |
void | columnAdded(TableColumnModelEvent event) |
void | columnMarginChanged(ChangeEvent event) |
void | columnMoved(TableColumnModelEvent event) |
void | columnRemoved(TableColumnModelEvent event) |
void | columnSelectionChanged(ListSelectionEvent event) |
void | editingCanceled(ChangeEvent event) |
void | editingStopped(ChangeEvent event) |
Accessible | getAccessibleAt(int r, int c)
Returns the accessible child (table cell) at the specified row and
column.
|
Accessible | getAccessibleCaption()
Returns the caption of the table.
|
Accessible | getAccessibleChild(int index)
Returns the accessible child at the given index.
|
int | getAccessibleColumn(int index)
Returns the column number of an accessible child (cell) with the
specified index.
|
int | getAccessibleColumnAtIndex(int index)
Returns the accessible column at the specified index.
|
int | getAccessibleColumnCount()
Returns the number of columns in the table.
|
Accessible | getAccessibleColumnDescription(int c)
Returns the accessible description for the column with the specified
index, or null if no description has been set.
|
int | getAccessibleColumnExtentAt(int r, int c)
Returns the number of columns that the specified cell occupies. |
AccessibleTable | getAccessibleColumnHeader()
Returns the column header.
|
int | getAccessibleIndex(int r, int c)
Returns the index of the accessible child at the specified row and
column.
|
int | getAccessibleIndexAt(int row, int column)
Returns the accessible child index at the specified column and row.
|
AccessibleRole | getAccessibleRole()
Returns the accessible role for the JTable component.
|
int | getAccessibleRow(int index)
Returns the row number of an accessible child (cell) with the specified
index.
|
int | getAccessibleRowAtIndex(int index)
Returns the accessible row at the specified index.
|
int | getAccessibleRowCount()
Returns the number of rows in the table.
|
Accessible | getAccessibleRowDescription(int r)
Returns the accessible description for the row with the specified index,
or null if no description has been set.
|
int | getAccessibleRowExtentAt(int r, int c)
Returns the number of rows that the specified cell occupies. |
AccessibleTable | getAccessibleRowHeader()
Returns the accessible row header.
|
Accessible | getAccessibleSelection(int i)
Returns the selected accessible object with the specified index
i . |
int | getAccessibleSelectionCount()
Returns the number of selected items in this table. |
Accessible | getAccessibleSummary()
Returns the summary for the table.
|
AccessibleTable | getAccessibleTable()
Returns the accessible table.
|
int[] | getSelectedAccessibleColumns()
Returns the indices of all selected columns.
|
int[] | getSelectedAccessibleRows()
Returns the indices of all selected rows.
|
boolean | isAccessibleChildSelected(int i)
Returns true if the accessible child with the index
i is selected, false otherwise.
|
boolean | isAccessibleColumnSelected(int c)
Returns true if the column with the specified index is
selected, false otherwise.
|
boolean | isAccessibleRowSelected(int r)
Returns true if the row with the specified index is
selected, false otherwise.
|
boolean | isAccessibleSelected(int r, int c)
Returns true if the accessible child at the specified
row and column is selected, false otherwise.
|
void | propertyChange(PropertyChangeEvent e)
Receives notification when any of the JTable's properties changes. |
void | removeAccessibleSelection(int i)
Removes the accessible child with the specified index i
from the current selection. |
void | selectAllAccessibleSelection()
Selects all accessible children that can be selected. |
void | setAccessibleCaption(Accessible c)
Sets the caption for the table.
|
void | setAccessibleColumnDescription(int c, Accessible description)
Sets the accessible description for the column with the specified index.
|
void | setAccessibleColumnHeader(AccessibleTable header)
Sets the accessible column header. |
void | setAccessibleRowDescription(int r, Accessible description)
Sets the accessible description for the row with the specified index.
|
void | setAccessibleRowHeader(AccessibleTable header)
Sets the accessible row header.
|
void | setAccessibleSummary(Accessible s)
Sets the summary for the table.
|
void | tableChanged(TableModelEvent event)
Receives notification when the table model changes. |
void | tableRowsDeleted(TableModelEvent event)
Receives notification when one or more rows have been deleted from the
table.
|
void | tableRowsInserted(TableModelEvent event)
Receives notification when one or more rows have been inserted into the
table and fires appropriate property change events.
|
void | valueChanged(ListSelectionEvent event)
Receives notification when the row selection changes and fires
appropriate property change events.
|
AccessibleJTable
.
Since: JDK1.5
i
to the
selection.
Parameters: i the index of the accessible child to add to the selection
Parameters: r the row number c the column number
Returns: the accessible child (table cell) at the specified row and column
Returns: the caption of the table
See Also: setAccessibleCaption
Parameters: index the child index.
Returns: The accessible child.
Parameters: index the index of the cell of which the column number is queried
Returns: the column number of an accessible child (cell) with the specified index
Parameters: index the index for which to query the column
Returns: the column number at the specified table index
Returns: the number of columns in the table
null
if no description has been set.
Parameters: c the column for which the description is queried
Returns: the accessible description for the column with the specified
index, or null
if no description has been set
1
here.
Parameters: r the row number c the column number
Returns: the number of rows that the specified cell occupies
Returns: the column header, or null
if there is no column
header
Parameters: r the row number c the column number
Returns: the index of the accessible child at the specified row and column
Parameters: row the row column the column
Returns: the index of the accessible child at the specified row and column
JTable
component.
Returns: {@link AccessibleRole#TABLE}.
Parameters: index the index of the cell of which the row number is queried
Returns: the row number of an accessible child (cell) with the specified index
Parameters: index the index for which to query the row
Returns: the row number at the specified table index
Returns: the number of rows in the table
null
if no description has been set.
Parameters: r the row for which the description is queried
Returns: the accessible description for the row with the specified index,
or null
if no description has been set
1
here.
Parameters: r the row number c the column number
Returns: the number of rows that the specified cell occupies
Returns: the accessible row header
i
. This basically returns the i-th selected cell in the
table when going though it row-wise, and inside the rows, column-wise.
Parameters: i the index of the selected object to find
Returns: the selected accessible object with the specified index
i
Returns: the summary for the table
Returns: this
.
Returns: the indices of all selected columns
Returns: the indices of all selected rows
true
if the accessible child with the index
i
is selected, false
otherwise.
Parameters: i the index of the accessible to check
Returns: true
if the accessible child with the index
i
is selected, false
otherwise
true
if the column with the specified index is
selected, false
otherwise.
Parameters: c the column number
Returns: true
if the column with the specified index is
selected, false
otherwise
true
if the row with the specified index is
selected, false
otherwise.
Parameters: r the row number
Returns: true
if the row with the specified index is
selected, false
otherwise
true
if the accessible child at the specified
row and column is selected, false
otherwise.
Parameters: r the row number of the child c the column number of the child
Returns: true
if the accessible child at the specified
row and column is selected, false
otherwise
Parameters: e the property change event
i
from the current selection. This will only work on tables that have
cell selection enabled (rowSelectionAllowed == false &&
columnSelectionAllowed == false
).
Parameters: i the index of the accessible to be removed from the selection
Parameters: c the caption to set
Parameters: c the column number for which to set the description description the description to set
Parameters: header the accessible column header to set
Parameters: r the row number for which to set the description description the description to set
Parameters: header the header to set
Parameters: s the summary to set
Parameters: event the table model event
Parameters: event the table model event
Parameters: event the table model event
Parameters: event the list selection event