|
|||||||||
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.AccessibleJComponent
AccessibleRole.TABLE
.AccessibleRole
public AccessibleTable getAccessibleTable()
getAccessibleTable
in class AccessibleContext
this
.AccessibleTable
public int getAccessibleSelectionCount()
getAccessibleSelectionCount
in interface AccessibleSelection
public 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 AccessibleSelection
i
- the index of the selected object to find
i
AccessibleSelection.getAccessibleSelectionCount()
public boolean isAccessibleChildSelected(int i)
true
if the accessible child with the index
i
is selected, false
otherwise.
isAccessibleChildSelected
in interface AccessibleSelection
i
- 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 AccessibleSelection
i
- 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 AccessibleSelection
i
- the index of the accessible to be removed from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection
in interface AccessibleSelection
public void selectAllAccessibleSelection()
selectAllAccessibleSelection
in interface AccessibleSelection
public void valueChanged(ListSelectionEvent event)
valueChanged
in interface ListSelectionListener
event
- the list selection eventpublic void tableChanged(TableModelEvent event)
tableRowsInserted(javax.swing.event.TableModelEvent)
or
tableRowsDeleted(javax.swing.event.TableModelEvent)
.
tableChanged
in interface TableModelListener
event
- 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)
TableColumnModelListener
TableColumnModel
to indicate that a column has been
added to the model.
columnAdded
in interface TableColumnModelListener
event
- information about the column addition.public void columnRemoved(TableColumnModelEvent event)
TableColumnModelListener
TableColumnModel
to indicate that a column has been
removed from the model.
columnRemoved
in interface TableColumnModelListener
event
- information about the column removal.public void columnMoved(TableColumnModelEvent event)
TableColumnModelListener
TableColumnModel
to indicate that a column has been
moved.
columnMoved
in interface TableColumnModelListener
event
- information about the column move.public void columnMarginChanged(ChangeEvent event)
TableColumnModelListener
TableColumnModel
to indicate that the model's
column margin has changed.
columnMarginChanged
in interface TableColumnModelListener
event
- the event (identifies the source).public void columnSelectionChanged(ListSelectionEvent event)
TableColumnModelListener
TableColumnModel
to indicate that the column
selection state has changed.
columnSelectionChanged
in interface TableColumnModelListener
event
- information about the column selection state.public void editingCanceled(ChangeEvent event)
CellEditorListener
editingCanceled
in interface CellEditorListener
event
- Change Eventpublic void editingStopped(ChangeEvent event)
CellEditorListener
editingStopped
in interface CellEditorListener
event
- Change Eventpublic void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- the property change eventpublic int getAccessibleRow(int index)
getAccessibleRow
in interface AccessibleExtendedTable
index
- the index of the cell of which the row number is queried
public int getAccessibleColumn(int index)
getAccessibleColumn
in interface AccessibleExtendedTable
index
- the index of the cell of which the column number is queried
public int getAccessibleIndex(int r, int c)
getAccessibleIndex
in interface AccessibleExtendedTable
r
- the row numberc
- the column number
public Accessible getAccessibleCaption()
getAccessibleCaption
in interface AccessibleTable
setAccessibleCaption(Accessible)
public void setAccessibleCaption(Accessible c)
setAccessibleCaption
in interface AccessibleTable
c
- the caption to setpublic Accessible getAccessibleSummary()
getAccessibleSummary
in interface AccessibleTable
public void setAccessibleSummary(Accessible s)
setAccessibleSummary
in interface AccessibleTable
s
- the summary to setpublic int getAccessibleRowCount()
getAccessibleRowCount
in interface AccessibleTable
public int getAccessibleColumnCount()
getAccessibleColumnCount
in interface AccessibleTable
public Accessible getAccessibleChild(int index)
getAccessibleChild
in class JComponent.AccessibleJComponent
index
- the child index.
Component.AccessibleAWTComponent.getAccessibleChildrenCount()
public Accessible getAccessibleAt(int r, int c)
getAccessibleAt
in interface AccessibleTable
r
- the row numberc
- the column number
public int getAccessibleRowExtentAt(int r, int c)
1
here.
getAccessibleRowExtentAt
in interface AccessibleTable
r
- the row numberc
- the column number
public int getAccessibleColumnExtentAt(int r, int c)
1
here.
getAccessibleColumnExtentAt
in interface AccessibleTable
r
- the row numberc
- the column number
public AccessibleTable getAccessibleRowHeader()
getAccessibleRowHeader
in interface AccessibleTable
public void setAccessibleRowHeader(AccessibleTable header)
setAccessibleRowHeader
in interface AccessibleTable
header
- the header to setpublic AccessibleTable getAccessibleColumnHeader()
getAccessibleColumnHeader
in interface AccessibleTable
null
if there is no column
headerpublic void setAccessibleColumnHeader(AccessibleTable header)
setAccessibleColumnHeader
in interface AccessibleTable
header
- the accessible column header to setpublic Accessible getAccessibleRowDescription(int r)
null
if no description has been set.
getAccessibleRowDescription
in interface AccessibleTable
r
- the row for which the description is queried
null
if no description has been setpublic void setAccessibleRowDescription(int r, Accessible description)
setAccessibleRowDescription
in interface AccessibleTable
r
- 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 AccessibleTable
c
- the column for which the description is queried
null
if no description has been setpublic void setAccessibleColumnDescription(int c, Accessible description)
setAccessibleColumnDescription
in interface AccessibleTable
c
- 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 AccessibleTable
r
- 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 AccessibleTable
r
- 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 AccessibleTable
c
- the column number
true
if the column with the specified index is
selected, false
otherwisepublic int[] getSelectedAccessibleRows()
getSelectedAccessibleRows
in interface AccessibleTable
public int[] getSelectedAccessibleColumns()
getSelectedAccessibleColumns
in interface AccessibleTable
public 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 |