Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
protected class: JTable.AccessibleJTable [javadoc | source]
java.lang.Object
   AccessibleJComponent
      javax.swing.JTable$AccessibleJTable

All Implemented Interfaces:
    CellEditorListener, TableModelListener, TableColumnModelListener, AccessibleExtendedTable, PropertyChangeListener, AccessibleSelection, ListSelectionListener

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 java.beans.XMLEncoder .
Nested Class Summary:
protected class  AccessibleJTable.AccessibleJTableModelChange   
protected class  AccessibleJTable.AccessibleJTableCell  The class provides an implementation of the Java Accessibility API appropriate to table cells. 
Field Summary
 int lastSelectedRow     
 int lastSelectedCol     
Constructor:
 protected AccessibleJTable() 
Method from javax.swing.JTable$AccessibleJTable Summary:
addAccessibleSelection,   clearAccessibleSelection,   columnAdded,   columnMarginChanged,   columnMoved,   columnRemoved,   columnSelectionChanged,   editingCanceled,   editingStopped,   getAccessibleAt,   getAccessibleAt,   getAccessibleCaption,   getAccessibleChild,   getAccessibleChildrenCount,   getAccessibleColumn,   getAccessibleColumnAtIndex,   getAccessibleColumnCount,   getAccessibleColumnDescription,   getAccessibleColumnExtentAt,   getAccessibleColumnHeader,   getAccessibleIndex,   getAccessibleIndexAt,   getAccessibleRole,   getAccessibleRow,   getAccessibleRowAtIndex,   getAccessibleRowCount,   getAccessibleRowDescription,   getAccessibleRowExtentAt,   getAccessibleRowHeader,   getAccessibleSelection,   getAccessibleSelection,   getAccessibleSelectionCount,   getAccessibleSummary,   getAccessibleTable,   getSelectedAccessibleColumns,   getSelectedAccessibleRows,   isAccessibleChildSelected,   isAccessibleColumnSelected,   isAccessibleRowSelected,   isAccessibleSelected,   propertyChange,   removeAccessibleSelection,   selectAllAccessibleSelection,   setAccessibleCaption,   setAccessibleColumnDescription,   setAccessibleColumnHeader,   setAccessibleRowDescription,   setAccessibleRowHeader,   setAccessibleSummary,   tableChanged,   tableRowsDeleted,   tableRowsInserted,   valueChanged
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.JTable$AccessibleJTable Detail:
 public  void addAccessibleSelection(int i) 
    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 JTables which have individual cell selection enabled.

 public  void clearAccessibleSelection() 
    Clears the selection in the object, so that no children in the object are selected.
 public  void columnAdded(TableColumnModelEvent e) 
    Track changes to the table contents (column insertions)
 public  void columnMarginChanged(ChangeEvent e) 
    Track changes of a column moving due to margin changes.
 public  void columnMoved(TableColumnModelEvent e) 
    Track changes of a column repositioning.
 public  void columnRemoved(TableColumnModelEvent e) 
    Track changes to the table contents (column deletions)
 public  void columnSelectionChanged(ListSelectionEvent e) 
    Track that the selection model of the TableColumnModel changed.
 public  void editingCanceled(ChangeEvent e) 
    Invoked when editing is canceled. The editor object is discarded and the cell is rendered once again.
 public  void editingStopped(ChangeEvent e) 
    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.
 public Accessible getAccessibleAt(Point p) 
    Returns the Accessible child, if one exists, contained at the local coordinate Point.
 public Accessible getAccessibleAt(int r,
    int c) 
 public Accessible getAccessibleCaption() 
    Returns the caption for the table.
 public Accessible getAccessibleChild(int i) 
    Returns the nth Accessible child of the object.
 public int getAccessibleChildrenCount() 
    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.
 public int getAccessibleColumn(int index) 
    Returns the column number of an index in the table.
 public int getAccessibleColumnAtIndex(int i) 
    Returns the column at a given index into the table.
 public int getAccessibleColumnCount() 
 public Accessible getAccessibleColumnDescription(int c) 
    Returns the description of the specified column in the table.
 public int getAccessibleColumnExtentAt(int r,
    int c) 
    Returns the number of columns occupied by the Accessible at a given (row, column).
 public AccessibleTable getAccessibleColumnHeader() 
    Returns the column headers as an AccessibleTable.
 public int getAccessibleIndex(int r,
    int c) 
    Returns the index at a row and column in the table.
 public int getAccessibleIndexAt(int r,
    int c) 
    Returns the index at a given (row, column) in the table.
 public AccessibleRole getAccessibleRole() 
    Gets the role of this object.
 public int getAccessibleRow(int index) 
    Returns the row number of an index in the table.
 public int getAccessibleRowAtIndex(int i) 
    Returns the row at a given index into the table.
 public int getAccessibleRowCount() 
 public Accessible getAccessibleRowDescription(int r) 
    Returns the description of the specified row in the table.
 public int getAccessibleRowExtentAt(int r,
    int c) 
    Returns the number of rows occupied by the Accessible at a specified row and column in the table.
 public AccessibleTable getAccessibleRowHeader() 
    Returns the row headers as an AccessibleTable.
 public AccessibleSelection getAccessibleSelection() 
    Get 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.
 public Accessible getAccessibleSelection(int i) 
    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.

 public int getAccessibleSelectionCount() 
    Returns the number of Accessible children currently selected. If no children are selected, the return value will be 0.
 public Accessible getAccessibleSummary() 
    Returns the summary description of the table.
 public AccessibleTable getAccessibleTable() 
    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.
 public int[] getSelectedAccessibleColumns() 
    Returns the selected columns in a table.
 public int[] getSelectedAccessibleRows() 
    Returns the selected rows in a table.
 public boolean isAccessibleChildSelected(int i) 
    Determines if the current child of this object is selected.
 public boolean isAccessibleColumnSelected(int c) 
    Returns a boolean value indicating whether the specified column is selected.
 public boolean isAccessibleRowSelected(int r) 
    Returns a boolean value indicating whether the specified row is selected.
 public boolean isAccessibleSelected(int r,
    int c) 
    Returns a boolean value indicating whether the accessible at a given (row, column) is selected.
 public  void propertyChange(PropertyChangeEvent e) 
    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
 public  void removeAccessibleSelection(int i) 
    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.

 public  void selectAllAccessibleSelection() 
    Causes every child of the object to be selected, but only if the JTable supports multiple selections, and if individual cell selection is enabled.
 public  void setAccessibleCaption(Accessible a) 
    Sets the caption for the table.
 public  void setAccessibleColumnDescription(int c,
    Accessible a) 
    Sets the description text of the specified column of the table.
 public  void setAccessibleColumnHeader(AccessibleTable a) 
    Sets the column headers as an AccessibleTable.
 public  void setAccessibleRowDescription(int r,
    Accessible a) 
    Sets the description text of the specified row of the table.
 public  void setAccessibleRowHeader(AccessibleTable a) 
    Sets the row headers as an AccessibleTable.
 public  void setAccessibleSummary(Accessible a) 
    Sets the summary description of the table.
 public  void tableChanged(TableModelEvent e) 
    Track changes to the table contents
 public  void tableRowsDeleted(TableModelEvent e) 
    Track changes to the table contents (row deletions)
 public  void tableRowsInserted(TableModelEvent e) 
    Track changes to the table contents (row insertions)
 public  void valueChanged(ListSelectionEvent e) 
    Track changes to table cell selections