protected class JTable.AccessibleJTable extends JComponent.AccessibleJComponent implements javax.accessibility.AccessibleSelection, javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener, javax.swing.event.TableColumnModelListener, javax.swing.event.CellEditorListener, java.beans.PropertyChangeListener, javax.accessibility.AccessibleExtendedTable
JTable.| Modifier and Type | Class and Description |
|---|---|
protected class |
JTable.AccessibleJTable.AccessibleJTableCell
Provides accessibility support for table cells.
|
protected class |
JTable.AccessibleJTable.AccessibleJTableModelChange |
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandleraccessibleContainerHandler, accessibleFocusHandlerACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent| Modifier | Constructor and Description |
|---|---|
protected |
JTable.AccessibleJTable()
Creates a new
AccessibleJTable. |
| Modifier and Type | Method and Description |
|---|---|
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(javax.swing.event.TableColumnModelEvent event)
Called by the
TableColumnModel to indicate that a column has been
added to the model. |
void |
columnMarginChanged(javax.swing.event.ChangeEvent event)
Called by the
TableColumnModel to indicate that the model's
column margin has changed. |
void |
columnMoved(javax.swing.event.TableColumnModelEvent event)
Called by the
TableColumnModel to indicate that a column has been
moved. |
void |
columnRemoved(javax.swing.event.TableColumnModelEvent event)
Called by the
TableColumnModel to indicate that a column has been
removed from the model. |
void |
columnSelectionChanged(javax.swing.event.ListSelectionEvent event)
Called by the
TableColumnModel to indicate that the column
selection state has changed. |
void |
editingCanceled(javax.swing.event.ChangeEvent event)
Editing has been canceled
|
void |
editingStopped(javax.swing.event.ChangeEvent event)
Editing has been stopped
|
javax.accessibility.Accessible |
getAccessibleAt(int r,
int c)
Returns the accessible child (table cell) at the specified row and
column.
|
javax.accessibility.Accessible |
getAccessibleCaption()
Returns the caption of the table.
|
javax.accessibility.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.
|
javax.accessibility.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.
|
javax.accessibility.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.
|
javax.accessibility.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.
|
javax.accessibility.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.
|
javax.accessibility.AccessibleTable |
getAccessibleRowHeader()
Returns the accessible row header.
|
javax.accessibility.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.
|
javax.accessibility.Accessible |
getAccessibleSummary()
Returns the summary for the table.
|
javax.accessibility.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(java.beans.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(javax.accessibility.Accessible c)
Sets the caption for the table.
|
void |
setAccessibleColumnDescription(int c,
javax.accessibility.Accessible description)
Sets the accessible description for the column with the specified index.
|
void |
setAccessibleColumnHeader(javax.accessibility.AccessibleTable header)
Sets the accessible column header.
|
void |
setAccessibleRowDescription(int r,
javax.accessibility.Accessible description)
Sets the accessible description for the row with the specified index.
|
void |
setAccessibleRowHeader(javax.accessibility.AccessibleTable header)
Sets the accessible row header.
|
void |
setAccessibleSummary(javax.accessibility.Accessible s)
Sets the summary for the table.
|
void |
tableChanged(javax.swing.event.TableModelEvent event)
Receives notification when the table model changes.
|
void |
tableRowsDeleted(javax.swing.event.TableModelEvent event)
Receives notification when one or more rows have been deleted from the
table.
|
void |
tableRowsInserted(javax.swing.event.TableModelEvent event)
Receives notification when one or more rows have been inserted into the
table and fires appropriate property change events.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent event)
Receives notification when the row selection changes and fires
appropriate property change events.
|
addPropertyChangeListener, getAccessibleChildrenCount, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getAccessibleStateSet, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListenerfirePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisibleprotected JTable.AccessibleJTable()
AccessibleJTable.public javax.accessibility.AccessibleRole getAccessibleRole()
JTable component.getAccessibleRole in class JComponent.AccessibleJComponentAccessibleRole.TABLE.AccessibleRolepublic javax.accessibility.AccessibleTable getAccessibleTable()
getAccessibleTable in class javax.accessibility.AccessibleContextthis.AccessibleTablepublic int getAccessibleSelectionCount()
getAccessibleSelectionCount in interface javax.accessibility.AccessibleSelectionpublic javax.accessibility.Accessible getAccessibleSelection(int i)
i. This basically returns the i-th selected cell in the
table when going though it row-wise, and inside the rows, column-wise.getAccessibleSelection in interface javax.accessibility.AccessibleSelectioni - the index of the selected object to findiAccessibleSelection.getAccessibleSelectionCount()public boolean isAccessibleChildSelected(int i)
true if the accessible child with the index
i is selected, false otherwise.isAccessibleChildSelected in interface javax.accessibility.AccessibleSelectioni - the index of the accessible to checktrue if the accessible child with the index
i is selected, false otherwisepublic void addAccessibleSelection(int i)
i to the
selection.addAccessibleSelection in interface javax.accessibility.AccessibleSelectioni - the index of the accessible child to add to the selectionpublic void removeAccessibleSelection(int i)
i
from the current selection. This will only work on tables that have
cell selection enabled (rowSelectionAllowed == false &&
columnSelectionAllowed == false).removeAccessibleSelection in interface javax.accessibility.AccessibleSelectioni - the index of the accessible to be removed from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection in interface javax.accessibility.AccessibleSelectionpublic void selectAllAccessibleSelection()
selectAllAccessibleSelection in interface javax.accessibility.AccessibleSelectionpublic void valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged in interface javax.swing.event.ListSelectionListenerevent - the list selection eventpublic void tableChanged(javax.swing.event.TableModelEvent event)
tableRowsInserted(javax.swing.event.TableModelEvent) or
tableRowsDeleted(javax.swing.event.TableModelEvent).tableChanged in interface javax.swing.event.TableModelListenerevent - the table model eventpublic void tableRowsInserted(javax.swing.event.TableModelEvent event)
event - the table model eventpublic void tableRowsDeleted(javax.swing.event.TableModelEvent event)
event - the table model eventpublic void columnAdded(javax.swing.event.TableColumnModelEvent event)
javax.swing.event.TableColumnModelListenerTableColumnModel to indicate that a column has been
added to the model.columnAdded in interface javax.swing.event.TableColumnModelListenerevent - information about the column addition.public void columnRemoved(javax.swing.event.TableColumnModelEvent event)
javax.swing.event.TableColumnModelListenerTableColumnModel to indicate that a column has been
removed from the model.columnRemoved in interface javax.swing.event.TableColumnModelListenerevent - information about the column removal.public void columnMoved(javax.swing.event.TableColumnModelEvent event)
javax.swing.event.TableColumnModelListenerTableColumnModel to indicate that a column has been
moved.columnMoved in interface javax.swing.event.TableColumnModelListenerevent - information about the column move.public void columnMarginChanged(javax.swing.event.ChangeEvent event)
javax.swing.event.TableColumnModelListenerTableColumnModel to indicate that the model's
column margin has changed.columnMarginChanged in interface javax.swing.event.TableColumnModelListenerevent - the event (identifies the source).public void columnSelectionChanged(javax.swing.event.ListSelectionEvent event)
javax.swing.event.TableColumnModelListenerTableColumnModel to indicate that the column
selection state has changed.columnSelectionChanged in interface javax.swing.event.TableColumnModelListenerevent - information about the column selection state.public void editingCanceled(javax.swing.event.ChangeEvent event)
javax.swing.event.CellEditorListenereditingCanceled in interface javax.swing.event.CellEditorListenerevent - Change Eventpublic void editingStopped(javax.swing.event.ChangeEvent event)
javax.swing.event.CellEditorListenereditingStopped in interface javax.swing.event.CellEditorListenerevent - Change Eventpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenere - the property change eventpublic int getAccessibleRow(int index)
getAccessibleRow in interface javax.accessibility.AccessibleExtendedTableindex - the index of the cell of which the row number is queriedpublic int getAccessibleColumn(int index)
getAccessibleColumn in interface javax.accessibility.AccessibleExtendedTableindex - the index of the cell of which the column number is queriedpublic int getAccessibleIndex(int r, int c)
getAccessibleIndex in interface javax.accessibility.AccessibleExtendedTabler - the row numberc - the column numberpublic javax.accessibility.Accessible getAccessibleCaption()
getAccessibleCaption in interface javax.accessibility.AccessibleTablesetAccessibleCaption(Accessible)public void setAccessibleCaption(javax.accessibility.Accessible c)
setAccessibleCaption in interface javax.accessibility.AccessibleTablec - the caption to setpublic javax.accessibility.Accessible getAccessibleSummary()
getAccessibleSummary in interface javax.accessibility.AccessibleTablepublic void setAccessibleSummary(javax.accessibility.Accessible s)
setAccessibleSummary in interface javax.accessibility.AccessibleTables - the summary to setpublic int getAccessibleRowCount()
getAccessibleRowCount in interface javax.accessibility.AccessibleTablepublic int getAccessibleColumnCount()
getAccessibleColumnCount in interface javax.accessibility.AccessibleTablepublic javax.accessibility.Accessible getAccessibleChild(int index)
getAccessibleChild in class JComponent.AccessibleJComponentindex - the child index.getAccessibleChildrenCount()public javax.accessibility.Accessible getAccessibleAt(int r, int c)
getAccessibleAt in interface javax.accessibility.AccessibleTabler - the row numberc - the column numberpublic int getAccessibleRowExtentAt(int r, int c)
1
here.getAccessibleRowExtentAt in interface javax.accessibility.AccessibleTabler - the row numberc - the column numberpublic int getAccessibleColumnExtentAt(int r, int c)
1
here.getAccessibleColumnExtentAt in interface javax.accessibility.AccessibleTabler - the row numberc - the column numberpublic javax.accessibility.AccessibleTable getAccessibleRowHeader()
getAccessibleRowHeader in interface javax.accessibility.AccessibleTablepublic void setAccessibleRowHeader(javax.accessibility.AccessibleTable header)
setAccessibleRowHeader in interface javax.accessibility.AccessibleTableheader - the header to setpublic javax.accessibility.AccessibleTable getAccessibleColumnHeader()
getAccessibleColumnHeader in interface javax.accessibility.AccessibleTablenull if there is no column
headerpublic void setAccessibleColumnHeader(javax.accessibility.AccessibleTable header)
setAccessibleColumnHeader in interface javax.accessibility.AccessibleTableheader - the accessible column header to setpublic javax.accessibility.Accessible getAccessibleRowDescription(int r)
null if no description has been set.getAccessibleRowDescription in interface javax.accessibility.AccessibleTabler - the row for which the description is queriednull if no description has been setpublic void setAccessibleRowDescription(int r, javax.accessibility.Accessible description)
setAccessibleRowDescription in interface javax.accessibility.AccessibleTabler - the row number for which to set the descriptiondescription - the description to setpublic javax.accessibility.Accessible getAccessibleColumnDescription(int c)
null if no description has been set.getAccessibleColumnDescription in interface javax.accessibility.AccessibleTablec - the column for which the description is queriednull if no description has been setpublic void setAccessibleColumnDescription(int c, javax.accessibility.Accessible description)
setAccessibleColumnDescription in interface javax.accessibility.AccessibleTablec - the column number for which to set the descriptiondescription - the description to setpublic boolean isAccessibleSelected(int r, int c)
true if the accessible child at the specified
row and column is selected, false otherwise.isAccessibleSelected in interface javax.accessibility.AccessibleTabler - the row number of the childc - the column number of the childtrue if the accessible child at the specified
row and column is selected, false otherwisepublic boolean isAccessibleRowSelected(int r)
true if the row with the specified index is
selected, false otherwise.isAccessibleRowSelected in interface javax.accessibility.AccessibleTabler - the row numbertrue if the row with the specified index is
selected, false otherwisepublic boolean isAccessibleColumnSelected(int c)
true if the column with the specified index is
selected, false otherwise.isAccessibleColumnSelected in interface javax.accessibility.AccessibleTablec - the column numbertrue if the column with the specified index is
selected, false otherwisepublic int[] getSelectedAccessibleRows()
getSelectedAccessibleRows in interface javax.accessibility.AccessibleTablepublic int[] getSelectedAccessibleColumns()
getSelectedAccessibleColumns in interface javax.accessibility.AccessibleTablepublic int getAccessibleRowAtIndex(int index)
index - the index for which to query the rowpublic int getAccessibleColumnAtIndex(int index)
index - the index for which to query the columnpublic int getAccessibleIndexAt(int row, int column)
row - the rowcolumn - the column