|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.JTable.AccessibleJTable
protected class JTable.AccessibleJTable
Provides accessibility support for JTable.
| Nested Class Summary | |
|---|---|
protected class |
JTable.AccessibleJTable.AccessibleJTableCell
Provides accessibility support for table cells. |
protected class |
JTable.AccessibleJTable.AccessibleJTableModelChange
|
| Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
|---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
| Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
|---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
|---|
accessibleContainerHandler, accessibleFocusHandler |
| Fields inherited from class java.awt.Component.AccessibleAWTComponent |
|---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
| Constructor Summary | |
|---|---|
protected |
JTable.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)
Called by the TableColumnModel to indicate that a column has been
added to the model. |
void |
columnMarginChanged(ChangeEvent event)
Called by the TableColumnModel to indicate that the model's
column margin has changed. |
void |
columnMoved(TableColumnModelEvent event)
Called by the TableColumnModel to indicate that a column has been
moved. |
void |
columnRemoved(TableColumnModelEvent event)
Called by the TableColumnModel to indicate that a column has been
removed from the model. |
void |
columnSelectionChanged(ListSelectionEvent event)
Called by the TableColumnModel to indicate that the column
selection state has changed. |
void |
editingCanceled(ChangeEvent event)
Editing has been canceled |
void |
editingStopped(ChangeEvent event)
Editing has been stopped |
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. |
| Methods inherited from class java.awt.Container.AccessibleAWTContainer |
|---|
getAccessibleAt |
| Methods inherited from class javax.accessibility.AccessibleContext |
|---|
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.accessibility.AccessibleComponent |
|---|
addFocusListener, 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, setVisible |
| Constructor Detail |
|---|
protected JTable.AccessibleJTable()
AccessibleJTable.
| Method Detail |
|---|
public AccessibleRole getAccessibleRole()
JTable component.
getAccessibleRole in class JComponent.AccessibleJComponentAccessibleRole.TABLE.AccessibleRolepublic AccessibleTable getAccessibleTable()
getAccessibleTable in class AccessibleContextthis.AccessibleTablepublic int getAccessibleSelectionCount()
getAccessibleSelectionCount in interface AccessibleSelectionpublic 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 AccessibleSelectioni - the index of the selected object to find
iAccessibleSelection.getAccessibleSelectionCount()public boolean isAccessibleChildSelected(int i)
true if the accessible child with the index
i is selected, false otherwise.
isAccessibleChildSelected in interface AccessibleSelectioni - the index of the accessible to check
true if the accessible child with the index
i is selected, false otherwisepublic void addAccessibleSelection(int i)
i to the
selection.
addAccessibleSelection in interface 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 AccessibleSelectioni - the index of the accessible to be removed from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection in interface AccessibleSelectionpublic void selectAllAccessibleSelection()
selectAllAccessibleSelection in interface AccessibleSelectionpublic void valueChanged(ListSelectionEvent event)
valueChanged in interface ListSelectionListenerevent - the list selection eventpublic void tableChanged(TableModelEvent event)
tableRowsInserted(javax.swing.event.TableModelEvent) or
tableRowsDeleted(javax.swing.event.TableModelEvent).
tableChanged in interface TableModelListenerevent - the table model eventpublic void tableRowsInserted(TableModelEvent event)
event - the table model eventpublic void tableRowsDeleted(TableModelEvent event)
event - the table model eventpublic void columnAdded(TableColumnModelEvent event)
TableColumnModelListenerTableColumnModel to indicate that a column has been
added to the model.
columnAdded in interface TableColumnModelListenerevent - information about the column addition.public void columnRemoved(TableColumnModelEvent event)
TableColumnModelListenerTableColumnModel to indicate that a column has been
removed from the model.
columnRemoved in interface TableColumnModelListenerevent - information about the column removal.public void columnMoved(TableColumnModelEvent event)
TableColumnModelListenerTableColumnModel to indicate that a column has been
moved.
columnMoved in interface TableColumnModelListenerevent - information about the column move.public void columnMarginChanged(ChangeEvent event)
TableColumnModelListenerTableColumnModel to indicate that the model's
column margin has changed.
columnMarginChanged in interface TableColumnModelListenerevent - the event (identifies the source).public void columnSelectionChanged(ListSelectionEvent event)
TableColumnModelListenerTableColumnModel to indicate that the column
selection state has changed.
columnSelectionChanged in interface TableColumnModelListenerevent - information about the column selection state.public void editingCanceled(ChangeEvent event)
CellEditorListener
editingCanceled in interface CellEditorListenerevent - Change Eventpublic void editingStopped(ChangeEvent event)
CellEditorListener
editingStopped in interface CellEditorListenerevent - Change Eventpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - the property change eventpublic int getAccessibleRow(int index)
getAccessibleRow in interface AccessibleExtendedTableindex - the index of the cell of which the row number is queried
public int getAccessibleColumn(int index)
getAccessibleColumn in interface AccessibleExtendedTableindex - the index of the cell of which the column number is queried
public int getAccessibleIndex(int r,
int c)
getAccessibleIndex in interface AccessibleExtendedTabler - the row numberc - the column number
public Accessible getAccessibleCaption()
getAccessibleCaption in interface AccessibleTablesetAccessibleCaption(Accessible)public void setAccessibleCaption(Accessible c)
setAccessibleCaption in interface AccessibleTablec - the caption to setpublic Accessible getAccessibleSummary()
getAccessibleSummary in interface AccessibleTablepublic void setAccessibleSummary(Accessible s)
setAccessibleSummary in interface AccessibleTables - the summary to setpublic int getAccessibleRowCount()
getAccessibleRowCount in interface AccessibleTablepublic int getAccessibleColumnCount()
getAccessibleColumnCount in interface AccessibleTablepublic Accessible getAccessibleChild(int index)
getAccessibleChild in class JComponent.AccessibleJComponentindex - the child index.
Component.AccessibleAWTComponent.getAccessibleChildrenCount()
public Accessible getAccessibleAt(int r,
int c)
getAccessibleAt in interface AccessibleTabler - the row numberc - the column number
public int getAccessibleRowExtentAt(int r,
int c)
1
here.
getAccessibleRowExtentAt in interface AccessibleTabler - the row numberc - the column number
public int getAccessibleColumnExtentAt(int r,
int c)
1
here.
getAccessibleColumnExtentAt in interface AccessibleTabler - the row numberc - the column number
public AccessibleTable getAccessibleRowHeader()
getAccessibleRowHeader in interface AccessibleTablepublic void setAccessibleRowHeader(AccessibleTable header)
setAccessibleRowHeader in interface AccessibleTableheader - the header to setpublic AccessibleTable getAccessibleColumnHeader()
getAccessibleColumnHeader in interface AccessibleTablenull if there is no column
headerpublic void setAccessibleColumnHeader(AccessibleTable header)
setAccessibleColumnHeader in interface AccessibleTableheader - the accessible column header to setpublic Accessible getAccessibleRowDescription(int r)
null if no description has been set.
getAccessibleRowDescription in interface AccessibleTabler - the row for which the description is queried
null if no description has been set
public void setAccessibleRowDescription(int r,
Accessible description)
setAccessibleRowDescription in interface AccessibleTabler - the row number for which to set the descriptiondescription - the description to setpublic Accessible getAccessibleColumnDescription(int c)
null if no description has been set.
getAccessibleColumnDescription in interface AccessibleTablec - the column for which the description is queried
null if no description has been set
public void setAccessibleColumnDescription(int c,
Accessible description)
setAccessibleColumnDescription in interface AccessibleTablec - the column number for which to set the descriptiondescription - the description to set
public boolean isAccessibleSelected(int r,
int c)
true if the accessible child at the specified
row and column is selected, false otherwise.
isAccessibleSelected in interface AccessibleTabler - the row number of the childc - the column number of the child
true 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 AccessibleTabler - the row number
true 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 AccessibleTablec - the column number
true if the column with the specified index is
selected, false otherwisepublic int[] getSelectedAccessibleRows()
getSelectedAccessibleRows in interface AccessibleTablepublic int[] getSelectedAccessibleColumns()
getSelectedAccessibleColumns in interface AccessibleTablepublic int getAccessibleRowAtIndex(int index)
index - the index for which to query the row
public int getAccessibleColumnAtIndex(int index)
index - the index for which to query the column
public int getAccessibleIndexAt(int row,
int column)
row - the rowcolumn - the column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||