java.lang.Object | |||||
↳ | javax.accessibility.AccessibleContext | ||||
↳ | java.awt.Component.AccessibleAWTComponent | ||||
↳ | java.awt.Container.AccessibleAWTContainer | ||||
↳ | javax.swing.JComponent.AccessibleJComponent | ||||
↳ | javax.swing.JTable.AccessibleJTable |
This class implements accessibility support for the
JTable
class. It provides an implementation of the
Java Accessibility API appropriate to table user-interface elements.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JTable.AccessibleJTable.AccessibleJTableCell | The class provides an implementation of the Java Accessibility API appropriate to table cells. | ||||||||||
JTable.AccessibleJTable.AccessibleJTableModelChange |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AccessibleJTable constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified
Accessible child of the
object to the object's selection. | |||||||||||
Clears the selection in the object, so that no children in the
object are selected.
| |||||||||||
Track changes to the table contents (column insertions)
| |||||||||||
Track changes of a column moving due to margin changes.
| |||||||||||
Track changes of a column repositioning.
| |||||||||||
Track changes to the table contents (column deletions)
| |||||||||||
Track that the selection model of the TableColumnModel changed.
| |||||||||||
Invoked when editing is canceled.
| |||||||||||
Track changes to a cell's contents.
| |||||||||||
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . | |||||||||||
Returns the Accessible at a specified row and column
in the table.
| |||||||||||
Returns the caption for the table.
| |||||||||||
Returns the nth
Accessible child of the object. | |||||||||||
Returns the number of accessible children in the object.
| |||||||||||
Returns the column number of an index in the table.
| |||||||||||
Returns the column at a given index into the table.
| |||||||||||
Returns the number of columns in the table.
| |||||||||||
Returns the description of the specified column in the table.
| |||||||||||
Returns the number of columns occupied by the
Accessible at a given (row, column). | |||||||||||
Returns the column headers as an
AccessibleTable . | |||||||||||
Returns the index at a row and column in the table.
| |||||||||||
Returns the index at a given (row, column) in the table.
| |||||||||||
Gets the role of this object.
| |||||||||||
Returns the row number of an index in the table.
| |||||||||||
Returns the row at a given index into the table.
| |||||||||||
Returns the number of rows in the table.
| |||||||||||
Returns the description of the specified row in the table.
| |||||||||||
Returns the number of rows occupied by the
Accessible
at a specified row and column in the table. | |||||||||||
Returns the row headers as an
AccessibleTable . | |||||||||||
Get the AccessibleSelection associated with this object.
| |||||||||||
Returns an
Accessible representing the
specified selected child in the object. | |||||||||||
Returns the number of
Accessible children
currently selected. | |||||||||||
Returns the summary description of the table.
| |||||||||||
Gets the
AccessibleTable associated with this
object. | |||||||||||
Returns the selected columns in a table.
| |||||||||||
Returns the selected rows in a table.
| |||||||||||
Determines if the current child of this object is selected.
| |||||||||||
Returns a boolean value indicating whether the specified column
is selected.
| |||||||||||
Returns a boolean value indicating whether the specified row
is selected.
| |||||||||||
Returns a boolean value indicating whether the accessible at a
given (row, column) is selected.
| |||||||||||
Track changes to selection model, column model, etc.
| |||||||||||
Removes the specified child of the object from the object's
selection.
| |||||||||||
Causes every child of the object to be selected, but only
if the
JTable supports multiple selections,
and if individual cell selection is enabled. | |||||||||||
Sets the caption for the table.
| |||||||||||
Sets the description text of the specified column of the table.
| |||||||||||
Sets the column headers as an
AccessibleTable . | |||||||||||
Sets the description text of the specified row of the table.
| |||||||||||
Sets the row headers as an
AccessibleTable . | |||||||||||
Sets the summary description of the table.
| |||||||||||
Track changes to the table contents
| |||||||||||
Track changes to the table contents (row deletions)
| |||||||||||
Track changes to the table contents (row insertions)
| |||||||||||
Track changes to table cell selections
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
AccessibleJTable constructor
Adds the specified Accessible
child of the
object to the object's selection. If the object supports
multiple selections, the specified child is added to
any existing selection, otherwise
it replaces any existing selection in the object. If the
specified child is already selected, this method has no effect.
This method only works on JTable
s which have
individual cell selection enabled.
i | the zero-based index of the child |
---|
Clears the selection in the object, so that no children in the object are selected.
Track changes to the table contents (column insertions)
Track changes of a column moving due to margin changes.
Track changes to the table contents (column deletions)
Track that the selection model of the TableColumnModel changed.
Invoked when editing is canceled. The editor object is discarded and the cell is rendered once again.
Track changes to a cell's contents. Invoked when editing is finished. The changes are saved, the editor object is discarded, and the cell is rendered once again.
Returns the Accessible
child, if one exists,
contained at the local coordinate Point
.
p | the point defining the top-left corner of the
Accessible , given in the coordinate space
of the object's parent |
---|
Accessible
, if it exists,
at the specified location; else null
Returns the Accessible at a specified row and column in the table.
r | zero-based row of the table |
---|---|
c | zero-based column of the table |
Returns the caption for the table.
Returns the nth Accessible
child of the object.
i | zero-based index of child |
---|
Returns the number of accessible children in the object. If all
of the children of this object implement Accessible
,
then this method should return the number of children of this object.
Returns the column number of an index in the table.
index | the zero-based index in the table |
---|
Returns the column at a given index into the table.
i | zero-based index into the table |
---|
Returns the number of columns in the table.
Returns the description of the specified column in the table.
c | zero-based column of the table |
---|
Returns the number of columns occupied by the
Accessible
at a given (row, column).
Accessible
at a specified row and column in the tableReturns the column headers as an AccessibleTable
.
AccessibleTable
representing the column
headers, or null
if the table header is
null
Returns the index at a row and column in the table.
r | zero-based row of the table |
---|---|
c | zero-based column of the table |
Returns the index at a given (row, column) in the table.
r | zero-based row of the table |
---|---|
c | zero-based column of the table |
Gets the role of this object.
Returns the row number of an index in the table.
index | the zero-based index in the table |
---|
Returns the row at a given index into the table.
i | zero-based index into the table |
---|
Returns the number of rows in the table.
Returns the description of the specified row in the table.
r | zero-based row of the table |
---|
Returns the number of rows occupied by the Accessible
at a specified row and column in the table.
Accessible
at a specified row and column in the tableReturns the row headers as an AccessibleTable
.
AccessibleTable
representing the row
headersGet the AccessibleSelection associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleSelection interface on behalf of itself.
Returns an Accessible
representing the
specified selected child in the object. If there
isn't a selection, or there are fewer children selected
than the integer passed in, the return
value will be null
.
Note that the index represents the i-th selected child, which is different from the i-th child.
i | the zero-based index of selected children |
---|
Returns the number of Accessible
children
currently selected.
If no children are selected, the return value will be 0.
Returns the summary description of the table.
Gets the AccessibleTable
associated with this
object. In the implementation of the Java Accessibility
API for this class, return this object, which is responsible
for implementing the AccessibleTables
interface
on behalf of itself.
Returns the selected columns in a table.
Returns the selected rows in a table.
Determines if the current child of this object is selected.
i | the zero-based index of the child in this
Accessible object |
---|
Returns a boolean value indicating whether the specified column is selected.
c | zero-based column of the table |
---|
Returns a boolean value indicating whether the specified row is selected.
r | zero-based row of the table |
---|
Returns a boolean value indicating whether the accessible at a given (row, column) is selected.
r | zero-based row of the table |
---|---|
c | zero-based column of the table |
Track changes to selection model, column model, etc. so as to be able to re-place listeners on those in order to pass on information to the Accessibility PropertyChange mechanism
e | A PropertyChangeEvent object describing the event source and the property that has changed. |
---|
Removes the specified child of the object from the object's selection. If the specified item isn't currently selected, this method has no effect.
This method only works on JTables
which have
individual cell selection enabled.
i | the zero-based index of the child |
---|
Causes every child of the object to be selected, but only
if the JTable
supports multiple selections,
and if individual cell selection is enabled.
Sets the caption for the table.
a | the caption for the table |
---|
Sets the description text of the specified column of the table.
c | zero-based column of the table |
---|---|
a | the description of the column |
Sets the column headers as an AccessibleTable
.
a | an AccessibleTable representing the
column headers |
---|
Sets the description text of the specified row of the table.
r | zero-based row of the table |
---|---|
a | the description of the row |
Sets the row headers as an AccessibleTable
.
a | an AccessibleTable representing the row
headers |
---|
Sets the summary description of the table.
a | the summary description of the table |
---|
Track changes to the table contents (row deletions)
Track changes to the table contents (row insertions)
Track changes to table cell selections
e | the event that characterizes the change. |
---|