javax.swing.text.html
Class AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable

java.lang.Object
  extended byjavax.swing.text.html.AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable
All Implemented Interfaces:
javax.accessibility.AccessibleTable
Enclosing class:
AccessibleHTML.TableElementInfo.TableAccessibleContext

protected class AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable
extends Object
implements javax.accessibility.AccessibleTable


Field Summary
private  int columnCount
           
private  Hashtable headers
           
private  int rowCount
           
 
Constructor Summary
protected AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable()
           
 
Method Summary
 void addHeader(AccessibleHTML.TableElementInfo.TableCellElementInfo cellInfo, int rowNumber)
           
 javax.accessibility.Accessible getAccessibleAt(int r, int c)
          Returns the Accessible at a specified row and column in the table.
 javax.accessibility.Accessible getAccessibleCaption()
          Returns the caption for the table.
 int getAccessibleColumnCount()
          Returns the number of columns in the table.
 javax.accessibility.Accessible getAccessibleColumnDescription(int c)
          Returns the description text of the specified column in the table.
 int getAccessibleColumnExtentAt(int r, int c)
          Returns the number of columns occupied by the Accessible at a specified row and column in the table.
 javax.accessibility.AccessibleTable getAccessibleColumnHeader()
          Returns the column headers as an AccessibleTable.
 int getAccessibleRowCount()
          Returns the number of rows in the table.
 javax.accessibility.Accessible getAccessibleRowDescription(int r)
          Returns the description of the specified row in the table.
 int getAccessibleRowExtentAt(int r, int c)
          Returns the number of rows occupied by the Accessible at a specified row and column in the table.
 javax.accessibility.AccessibleTable getAccessibleRowHeader()
          Returns the row headers as an AccessibleTable.
 javax.accessibility.Accessible getAccessibleSummary()
          Returns the summary description of the table.
private  AccessibleHTML.TableElementInfo.TableCellElementInfo getElementInfoAt(int r, int c)
           
 int[] getSelectedAccessibleColumns()
          Returns the selected columns in a table.
 int[] getSelectedAccessibleRows()
          Returns the selected rows in a table.
 boolean isAccessibleColumnSelected(int c)
          Returns a boolean value indicating whether the specified column is selected.
 boolean isAccessibleRowSelected(int r)
          Returns a boolean value indicating whether the specified row is selected.
 boolean isAccessibleSelected(int r, int c)
          Returns a boolean value indicating whether the accessible at a specified row and column is selected.
 void setAccessibleCaption(javax.accessibility.Accessible a)
          Sets the caption for the table.
 void setAccessibleColumnDescription(int c, javax.accessibility.Accessible a)
          Sets the description text of the specified column in the table.
 void setAccessibleColumnHeader(javax.accessibility.AccessibleTable table)
          Sets the column headers.
 void setAccessibleRowDescription(int r, javax.accessibility.Accessible a)
          Sets the description text of the specified row of the table.
 void setAccessibleRowHeader(javax.accessibility.AccessibleTable table)
          Sets the row headers.
 void setAccessibleSummary(javax.accessibility.Accessible a)
          Sets the summary description of the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headers

private Hashtable headers

rowCount

private int rowCount

columnCount

private int columnCount
Constructor Detail

AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable

protected AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable()
Method Detail

addHeader

public void addHeader(AccessibleHTML.TableElementInfo.TableCellElementInfo cellInfo,
                      int rowNumber)

getAccessibleCaption

public javax.accessibility.Accessible getAccessibleCaption()
Returns the caption for the table.

Specified by:
getAccessibleCaption in interface javax.accessibility.AccessibleTable
Returns:
the caption for the table

setAccessibleCaption

public void setAccessibleCaption(javax.accessibility.Accessible a)
Sets the caption for the table.

Specified by:
setAccessibleCaption in interface javax.accessibility.AccessibleTable
Parameters:
a - the caption for the table

getAccessibleSummary

public javax.accessibility.Accessible getAccessibleSummary()
Returns the summary description of the table.

Specified by:
getAccessibleSummary in interface javax.accessibility.AccessibleTable
Returns:
the summary description of the table

setAccessibleSummary

public void setAccessibleSummary(javax.accessibility.Accessible a)
Sets the summary description of the table

Specified by:
setAccessibleSummary in interface javax.accessibility.AccessibleTable
Parameters:
a - the summary description of the table

getAccessibleRowCount

public int getAccessibleRowCount()
Returns the number of rows in the table.

Specified by:
getAccessibleRowCount in interface javax.accessibility.AccessibleTable
Returns:
the number of rows in the table

getAccessibleColumnCount

public int getAccessibleColumnCount()
Returns the number of columns in the table.

Specified by:
getAccessibleColumnCount in interface javax.accessibility.AccessibleTable
Returns:
the number of columns in the table

getElementInfoAt

private AccessibleHTML.TableElementInfo.TableCellElementInfo getElementInfoAt(int r,
                                                                              int c)

getAccessibleAt

public javax.accessibility.Accessible getAccessibleAt(int r,
                                                      int c)
Returns the Accessible at a specified row and column in the table.

Specified by:
getAccessibleAt in interface javax.accessibility.AccessibleTable
Parameters:
r - zero-based row of the table
c - zero-based column of the table
Returns:
the Accessible at the specified row and column

getAccessibleRowExtentAt

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.

Specified by:
getAccessibleRowExtentAt in interface javax.accessibility.AccessibleTable
Returns:
the number of rows occupied by the Accessible at a given specified (row, column)

getAccessibleColumnExtentAt

public int getAccessibleColumnExtentAt(int r,
                                       int c)
Returns the number of columns occupied by the Accessible at a specified row and column in the table.

Specified by:
getAccessibleColumnExtentAt in interface javax.accessibility.AccessibleTable
Returns:
the number of columns occupied by the Accessible at a given specified row and column

getAccessibleRowHeader

public javax.accessibility.AccessibleTable getAccessibleRowHeader()
Returns the row headers as an AccessibleTable.

Specified by:
getAccessibleRowHeader in interface javax.accessibility.AccessibleTable
Returns:
an AccessibleTable representing the row headers

setAccessibleRowHeader

public void setAccessibleRowHeader(javax.accessibility.AccessibleTable table)
Sets the row headers.

Specified by:
setAccessibleRowHeader in interface javax.accessibility.AccessibleTable
Parameters:
table - an AccessibleTable representing the row headers

getAccessibleColumnHeader

public javax.accessibility.AccessibleTable getAccessibleColumnHeader()
Returns the column headers as an AccessibleTable.

Specified by:
getAccessibleColumnHeader in interface javax.accessibility.AccessibleTable
Returns:
an AccessibleTable representing the column headers

setAccessibleColumnHeader

public void setAccessibleColumnHeader(javax.accessibility.AccessibleTable table)
Sets the column headers.

Specified by:
setAccessibleColumnHeader in interface javax.accessibility.AccessibleTable
Parameters:
table - an AccessibleTable representing the column headers

getAccessibleRowDescription

public javax.accessibility.Accessible getAccessibleRowDescription(int r)
Returns the description of the specified row in the table.

Specified by:
getAccessibleRowDescription in interface javax.accessibility.AccessibleTable
Parameters:
r - zero-based row of the table
Returns:
the description of the row

setAccessibleRowDescription

public void setAccessibleRowDescription(int r,
                                        javax.accessibility.Accessible a)
Sets the description text of the specified row of the table.

Specified by:
setAccessibleRowDescription in interface javax.accessibility.AccessibleTable
Parameters:
r - zero-based row of the table
a - the description of the row

getAccessibleColumnDescription

public javax.accessibility.Accessible getAccessibleColumnDescription(int c)
Returns the description text of the specified column in the table.

Specified by:
getAccessibleColumnDescription in interface javax.accessibility.AccessibleTable
Parameters:
c - zero-based column of the table
Returns:
the text description of the column

setAccessibleColumnDescription

public void setAccessibleColumnDescription(int c,
                                           javax.accessibility.Accessible a)
Sets the description text of the specified column in the table.

Specified by:
setAccessibleColumnDescription in interface javax.accessibility.AccessibleTable
Parameters:
c - zero-based column of the table
a - the text description of the column

isAccessibleSelected

public boolean isAccessibleSelected(int r,
                                    int c)
Returns a boolean value indicating whether the accessible at a specified row and column is selected.

Specified by:
isAccessibleSelected in interface javax.accessibility.AccessibleTable
Parameters:
r - zero-based row of the table
c - zero-based column of the table
Returns:
the boolean value true if the accessible at the row and column is selected. Otherwise, the boolean value false

isAccessibleRowSelected

public boolean isAccessibleRowSelected(int r)
Returns a boolean value indicating whether the specified row is selected.

Specified by:
isAccessibleRowSelected in interface javax.accessibility.AccessibleTable
Parameters:
r - zero-based row of the table
Returns:
the boolean value true if the specified row is selected. Otherwise, false.

isAccessibleColumnSelected

public boolean isAccessibleColumnSelected(int c)
Returns a boolean value indicating whether the specified column is selected.

Specified by:
isAccessibleColumnSelected in interface javax.accessibility.AccessibleTable
Returns:
the boolean value true if the specified column is selected. Otherwise, false.

getSelectedAccessibleRows

public int[] getSelectedAccessibleRows()
Returns the selected rows in a table.

Specified by:
getSelectedAccessibleRows in interface javax.accessibility.AccessibleTable
Returns:
an array of selected rows where each element is a zero-based row of the table

getSelectedAccessibleColumns

public int[] getSelectedAccessibleColumns()
Returns the selected columns in a table.

Specified by:
getSelectedAccessibleColumns in interface javax.accessibility.AccessibleTable
Returns:
an array of selected columns where each element is a zero-based column of the table