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

java.lang.Object
  extended byjavax.accessibility.AccessibleContext
      extended byjavax.swing.text.html.AccessibleHTML.HTMLAccessibleContext
          extended byjavax.swing.text.html.AccessibleHTML.TableElementInfo.TableAccessibleContext
All Implemented Interfaces:
javax.accessibility.Accessible, javax.accessibility.AccessibleComponent, javax.accessibility.AccessibleTable
Enclosing class:
AccessibleHTML.TableElementInfo

public class AccessibleHTML.TableElementInfo.TableAccessibleContext
extends AccessibleHTML.HTMLAccessibleContext
implements javax.accessibility.AccessibleTable


Nested Class Summary
protected  class AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable
           
 
Field Summary
private  AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable rowHeadersTable
           
 
Fields inherited from class javax.swing.text.html.AccessibleHTML.HTMLAccessibleContext
elementInfo
 
Fields inherited from class javax.accessibility.AccessibleContext
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent
 
Constructor Summary
AccessibleHTML.TableElementInfo.TableAccessibleContext(AccessibleHTML.ElementInfo elementInfo)
           
 
Method Summary
 void addRowHeader(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.
 javax.accessibility.Accessible getAccessibleChild(int i)
          Returns the specified Accessible child of the object.
 int getAccessibleChildrenCount()
          Returns the number of accessible children of the object.
 int getAccessibleColumn(int index)
          Returns the column number of an index in 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.
 String getAccessibleColumnHeader(int c)
          Returns the column header at a column in a table.
 String getAccessibleDescription()
          Gets the accessibleDescription property of this object.
 int getAccessibleIndex(int r, int c)
           
 int getAccessibleIndexInParent()
          Gets the 0-based index of this object in its accessible parent.
 String getAccessibleName()
          Gets the accessibleName property of this object.
 javax.accessibility.AccessibleRole getAccessibleRole()
          Gets the role of this object.
 int getAccessibleRow(int index)
          Returns the row number of an index in the table.
 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.
 String getAccessibleRowHeader(int r)
          Returns the row header at a row in a table.
 javax.accessibility.Accessible getAccessibleSummary()
          Returns the summary description of the table.
 javax.accessibility.AccessibleTable getAccessibleTable()
           
 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 javax.swing.text.html.AccessibleHTML.HTMLAccessibleContext
addFocusListener, contains, getAccessibleAt, getAccessibleComponent, getAccessibleContext, getAccessibleStateSet, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible
 
Methods inherited from class javax.accessibility.AccessibleContext
addPropertyChangeListener, firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleParent, getAccessibleRelationSet, getAccessibleSelection, getAccessibleText, getAccessibleValue, removePropertyChangeListener, setAccessibleDescription, setAccessibleName, setAccessibleParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowHeadersTable

private AccessibleHTML.TableElementInfo.TableAccessibleContext.AccessibleHeadersTable rowHeadersTable
Constructor Detail

AccessibleHTML.TableElementInfo.TableAccessibleContext

public AccessibleHTML.TableElementInfo.TableAccessibleContext(AccessibleHTML.ElementInfo elementInfo)
Method Detail

getAccessibleName

public String getAccessibleName()
Gets the accessibleName property of this object. The accessibleName property of an object is a localized String that designates the purpose of the object. For example, the accessibleName property of a label or button might be the text of the label or button itself. In the case of an object that doesn't display its name, the accessibleName should still be set. For example, in the case of a text field used to enter the name of a city, the accessibleName for the en_US locale could be 'city.'

Returns:
the localized name of the object; null if this object does not have a name
See Also:
AccessibleContext.setAccessibleName(java.lang.String)

getAccessibleDescription

public String getAccessibleDescription()
Gets the accessibleDescription property of this object. If this property isn't set, returns the content type of this JEditorPane instead (e.g. "plain/text", "html/text").

Returns:
the localized description of the object; null if this object does not have a description
See Also:
AccessibleContext.setAccessibleName(java.lang.String)

getAccessibleRole

public javax.accessibility.AccessibleRole getAccessibleRole()
Gets the role of this object. The role of the object is the generic purpose or use of the class of this object. For example, the role of a push button is AccessibleRole.PUSH_BUTTON. The roles in AccessibleRole are provided so component developers can pick from a set of predefined roles. This enables assistive technologies to provide a consistent interface to various tweaked subclasses of components (e.g., use AccessibleRole.PUSH_BUTTON for all components that act like a push button) as well as distinguish between sublasses that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes and AccessibleRole.RADIO_BUTTON for radio buttons).

Note that the AccessibleRole class is also extensible, so custom component developers can define their own AccessibleRole's if the set of predefined roles is inadequate.

Returns:
an instance of AccessibleRole describing the role of the object
See Also:
AccessibleRole

getAccessibleIndexInParent

public int getAccessibleIndexInParent()
Gets the 0-based index of this object in its accessible parent.

Overrides:
getAccessibleIndexInParent in class AccessibleHTML.HTMLAccessibleContext
Returns:
the 0-based index of this object in its parent; -1 if this object does not have an accessible parent.
See Also:
AccessibleContext.getAccessibleParent(), getAccessibleChildrenCount()

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Returns the number of accessible children of the object.

Overrides:
getAccessibleChildrenCount in class AccessibleHTML.HTMLAccessibleContext
Returns:
the number of accessible children of the object.

getAccessibleChild

public javax.accessibility.Accessible getAccessibleChild(int i)
Returns the specified Accessible child of the object. The Accessible children of an Accessible object are zero-based, so the first child of an Accessible child is at index 0, the second child is at index 1, and so on.

Overrides:
getAccessibleChild in class AccessibleHTML.HTMLAccessibleContext
Parameters:
i - zero-based index of child
Returns:
the Accessible child of the object
See Also:
getAccessibleChildrenCount()

getAccessibleTable

public javax.accessibility.AccessibleTable getAccessibleTable()

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

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

getAccessibleRow

public int getAccessibleRow(int index)
Returns the row number of an index in the table.

Parameters:
index - the zero-based index in the table
Returns:
the zero-based row of the table if one exists; otherwise -1.

getAccessibleColumn

public int getAccessibleColumn(int index)
Returns the column number of an index in the table.

Parameters:
index - the zero-based index in the table
Returns:
the zero-based column of the table if one exists; otherwise -1.

getAccessibleIndex

public int getAccessibleIndex(int r,
                              int c)

getAccessibleRowHeader

public String getAccessibleRowHeader(int r)
Returns the row header at a row in a table.

Parameters:
r - zero-based row of the table
Returns:
a String representing the row header if one exists; otherwise null.

getAccessibleColumnHeader

public String getAccessibleColumnHeader(int c)
Returns the column header at a column in a table.

Parameters:
c - zero-based column of the table
Returns:
a String representing the column header if one exists; otherwise null.

addRowHeader

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