GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
protected class JTable.AccessibleJTable
extends JComponent.AccessibleJComponent
JTable
.
Nested Class Summary | |
protected class |
|
protected class |
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent | |
JComponent.AccessibleJComponent.AccessibleContainerHandler , JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer | |
Container.AccessibleAWTContainer.AccessibleContainerHandler |
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.Container.AccessibleAWTContainer | |
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent | |
accessibleAWTComponentHandler , accessibleAWTFocusHandler |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
void |
|
Accessible |
|
Accessible |
|
Accessible |
|
int |
|
int |
|
int |
|
Accessible |
|
int |
|
AccessibleTable |
|
int |
|
int |
|
AccessibleRole |
|
int |
|
int |
|
int |
|
Accessible |
|
int |
|
AccessibleTable |
|
Accessible |
|
int |
|
Accessible |
|
AccessibleTable |
|
int[] |
|
int[] |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class java.awt.Container.AccessibleAWTContainer | |
getAccessibleAt , getAccessibleChild , getAccessibleChildrenCount |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void addAccessibleSelection(int i)
Adds the accessible child with the specified indexi
to the selection.
- Specified by:
- addAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- the index of the accessible child to add to the selection
public void clearAccessibleSelection()
Deselects all selected accessible children.
- Specified by:
- clearAccessibleSelection in interface AccessibleSelection
public void columnAdded(TableColumnModelEvent event)
- Specified by:
- columnAdded in interface TableColumnModelListener
public void columnMarginChanged(ChangeEvent event)
- Specified by:
- columnMarginChanged in interface TableColumnModelListener
public void columnMoved(TableColumnModelEvent event)
- Specified by:
- columnMoved in interface TableColumnModelListener
public void columnRemoved(TableColumnModelEvent event)
- Specified by:
- columnRemoved in interface TableColumnModelListener
public void columnSelectionChanged(ListSelectionEvent event)
- Specified by:
- columnSelectionChanged in interface TableColumnModelListener
public void editingCanceled(ChangeEvent event)
- Specified by:
- editingCanceled in interface CellEditorListener
public void editingStopped(ChangeEvent event)
- Specified by:
- editingStopped in interface CellEditorListener
public Accessible getAccessibleAt(int r, int c)
Returns the accessible child (table cell) at the specified row and column.
- Specified by:
- getAccessibleAt in interface AccessibleTable
- Parameters:
r
- the row numberc
- the column number
- Returns:
- the accessible child (table cell) at the specified row and column
public Accessible getAccessibleCaption()
Returns the caption of the table.
- Specified by:
- getAccessibleCaption in interface AccessibleTable
- Returns:
- the caption of the table
- See Also:
setAccessibleCaption(Accessible)
public Accessible getAccessibleChild(int index)
Returns the accessible child at the given index.
- Overrides:
- getAccessibleChild in interface JComponent.AccessibleJComponent
- Parameters:
index
- the child index.
- Returns:
- The accessible child.
public int getAccessibleColumn(int index)
Returns the column number of an accessible child (cell) with the specified index.
- Specified by:
- getAccessibleColumn in interface AccessibleExtendedTable
- 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
public int getAccessibleColumnAtIndex(int index)
Returns the accessible column at the specified index.
- Parameters:
index
- the index for which to query the column
- Returns:
- the column number at the specified table index
public int getAccessibleColumnCount()
Returns the number of columns in the table.
- Specified by:
- getAccessibleColumnCount in interface AccessibleTable
- Returns:
- the number of columns in the table
public Accessible getAccessibleColumnDescription(int c)
Returns the accessible description for the column with the specified index, ornull
if no description has been set.
- Specified by:
- getAccessibleColumnDescription in interface AccessibleTable
- 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
public int getAccessibleColumnExtentAt(int r, int c)
Returns the number of columns that the specified cell occupies. The standard table cells only occupy one column, so we return1
here.
- Specified by:
- getAccessibleColumnExtentAt in interface AccessibleTable
- Parameters:
r
- the row numberc
- the column number
- Returns:
- the number of rows that the specified cell occupies
public AccessibleTable getAccessibleColumnHeader()
Returns the column header.
- Specified by:
- getAccessibleColumnHeader in interface AccessibleTable
- Returns:
- the column header, or
null
if there is no column header
public int getAccessibleIndex(int r, int c)
Returns the index of the accessible child at the specified row and column.
- Specified by:
- getAccessibleIndex in interface AccessibleExtendedTable
- Parameters:
r
- the row numberc
- the column number
- Returns:
- the index of the accessible child at the specified row and column
public int getAccessibleIndexAt(int row, int column)
Returns the accessible child index at the specified column and row.
- Parameters:
row
- the rowcolumn
- the column
- Returns:
- the index of the accessible child at the specified row and column
public AccessibleRole getAccessibleRole()
Returns the accessible role for theJTable
component.
- Overrides:
- getAccessibleRole in interface JComponent.AccessibleJComponent
- Returns:
AccessibleRole.TABLE
.
public int getAccessibleRow(int index)
Returns the row number of an accessible child (cell) with the specified index.
- Specified by:
- getAccessibleRow in interface AccessibleExtendedTable
- 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
public int getAccessibleRowAtIndex(int index)
Returns the accessible row at the specified index.
- Parameters:
index
- the index for which to query the row
- Returns:
- the row number at the specified table index
public int getAccessibleRowCount()
Returns the number of rows in the table.
- Specified by:
- getAccessibleRowCount in interface AccessibleTable
- Returns:
- the number of rows in the table
public Accessible getAccessibleRowDescription(int r)
Returns the accessible description for the row with the specified index, ornull
if no description has been set.
- Specified by:
- getAccessibleRowDescription in interface AccessibleTable
- 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
public int getAccessibleRowExtentAt(int r, int c)
Returns the number of rows that the specified cell occupies. The standard table cells only occupy one row, so we return1
here.
- Specified by:
- getAccessibleRowExtentAt in interface AccessibleTable
- Parameters:
r
- the row numberc
- the column number
- Returns:
- the number of rows that the specified cell occupies
public AccessibleTable getAccessibleRowHeader()
Returns the accessible row header.
- Specified by:
- getAccessibleRowHeader in interface AccessibleTable
- Returns:
- the accessible row header
public Accessible getAccessibleSelection(int i)
Returns the selected accessible object with the specified indexi
. This basically returns the i-th selected cell in the table when going though it row-wise, and inside the rows, column-wise.
- Specified by:
- getAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- the index of the selected object to find
- Returns:
- the selected accessible object with the specified index
i
public int getAccessibleSelectionCount()
Returns the number of selected items in this table.
- Specified by:
- getAccessibleSelectionCount in interface AccessibleSelection
public Accessible getAccessibleSummary()
Returns the summary for the table.
- Specified by:
- getAccessibleSummary in interface AccessibleTable
- Returns:
- the summary for the table
public AccessibleTable getAccessibleTable()
Returns the accessible table.
- Overrides:
- getAccessibleTable in interface AccessibleContext
- Returns:
this
.
public int[] getSelectedAccessibleColumns()
Returns the indices of all selected columns.
- Specified by:
- getSelectedAccessibleColumns in interface AccessibleTable
- Returns:
- the indices of all selected columns
public int[] getSelectedAccessibleRows()
Returns the indices of all selected rows.
- Specified by:
- getSelectedAccessibleRows in interface AccessibleTable
- Returns:
- the indices of all selected rows
public boolean isAccessibleChildSelected(int i)
Returnstrue
if the accessible child with the indexi
is selected,false
otherwise.
- Specified by:
- isAccessibleChildSelected in interface AccessibleSelection
- Parameters:
i
- the index of the accessible to check
- Returns:
true
if the accessible child with the indexi
is selected,false
otherwise
public boolean isAccessibleColumnSelected(int c)
Returnstrue
if the column with the specified index is selected,false
otherwise.
- Specified by:
- isAccessibleColumnSelected in interface AccessibleTable
- Parameters:
c
- the column number
- Returns:
true
if the column with the specified index is selected,false
otherwise
public boolean isAccessibleRowSelected(int r)
Returnstrue
if the row with the specified index is selected,false
otherwise.
- Specified by:
- isAccessibleRowSelected in interface AccessibleTable
- Parameters:
r
- the row number
- Returns:
true
if the row with the specified index is selected,false
otherwise
public boolean isAccessibleSelected(int r, int c)
Returnstrue
if the accessible child at the specified row and column is selected,false
otherwise.
- Specified by:
- isAccessibleSelected in interface AccessibleTable
- Parameters:
r
- the row number of the childc
- the column number of the child
- Returns:
true
if the accessible child at the specified row and column is selected,false
otherwise
public void propertyChange(PropertyChangeEvent e)
Receives notification when any of the JTable's properties changes. This is used to replace the listeners on the table's model, selection model, column model and cell editor.
- Specified by:
- propertyChange in interface PropertyChangeListener
- Parameters:
e
- the property change event
public void removeAccessibleSelection(int i)
Removes the accessible child with the specified indexi
from the current selection. This will only work on tables that have cell selection enabled (rowSelectionAllowed == false && columnSelectionAllowed == false
).
- Specified by:
- removeAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- the index of the accessible to be removed from the selection
public void selectAllAccessibleSelection()
Selects all accessible children that can be selected. This will only work on tables that support multiple selections and that have individual cell selection enabled.
- Specified by:
- selectAllAccessibleSelection in interface AccessibleSelection
public void setAccessibleCaption(Accessible c)
Sets the caption for the table.
- Specified by:
- setAccessibleCaption in interface AccessibleTable
- Parameters:
c
- the caption to set
public void setAccessibleColumnDescription(int c, Accessible description)
Sets the accessible description for the column with the specified index.
- Specified by:
- setAccessibleColumnDescription in interface AccessibleTable
- Parameters:
c
- the column number for which to set the descriptiondescription
- the description to set
public void setAccessibleColumnHeader(AccessibleTable header)
Sets the accessible column header. The default implementation doesn't allow changing the header this way, so this is a no-op.
- Specified by:
- setAccessibleColumnHeader in interface AccessibleTable
- Parameters:
header
- the accessible column header to set
public void setAccessibleRowDescription(int r, Accessible description)
Sets the accessible description for the row with the specified index.
- Specified by:
- setAccessibleRowDescription in interface AccessibleTable
- Parameters:
r
- the row number for which to set the descriptiondescription
- the description to set
public void setAccessibleRowHeader(AccessibleTable header)
Sets the accessible row header.
- Specified by:
- setAccessibleRowHeader in interface AccessibleTable
- Parameters:
header
- the header to set
public void setAccessibleSummary(Accessible s)
Sets the summary for the table.
- Specified by:
- setAccessibleSummary in interface AccessibleTable
- Parameters:
s
- the summary to set
public void tableChanged(TableModelEvent event)
Receives notification when the table model changes. Depending on the type of change, this method callstableRowsInserted(TableModelEvent)
ortableRowsDeleted(TableModelEvent)
.
- Specified by:
- tableChanged in interface TableModelListener
- Parameters:
event
- the table model event
public void tableRowsDeleted(TableModelEvent event)
Receives notification when one or more rows have been deleted from the table.
- Parameters:
event
- the table model event
public void tableRowsInserted(TableModelEvent event)
Receives notification when one or more rows have been inserted into the table and fires appropriate property change events.
- Parameters:
event
- the table model event
public void valueChanged(ListSelectionEvent event)
Receives notification when the row selection changes and fires appropriate property change events.
- Specified by:
- valueChanged in interface ListSelectionListener
- Parameters:
event
- the list selection event
GNU Classpath (0.95) |