org.eclipse.actf.accservice.javapp
Class JavaAccessibleTable

java.lang.Object
  extended by org.eclipse.actf.accservice.javapp.JavaAccessibleTable
All Implemented Interfaces:
IAccessibleTableElement

public class JavaAccessibleTable
extends Object
implements IAccessibleTableElement

implementation of the IAccessibleImageElement object for the Java Accesibility API's AccessibleTable.

Author:
Mike Smith
See Also:
AccessibleTable

Constructor Summary
JavaAccessibleTable(AccessibleTable table)
          Constructor used to create an accessible table object.
 
Method Summary
 Object getCaption()
          get the caption for the table
 long getColumnCount()
          get the number of columns for the table
 String getColumnDescription(long column)
          get the description for the specified column
 long getRowCount()
          get the number of rows for the table
 String getRowDescription(long row)
          get the description for the specified row
 int getSelectedChildCount()
          get the number of selected chidren for the table
 int[] getSelectedChildren()
          get the indices of the selected Children
 int[] getSelectedColumns()
          get the indecies of the selected columns
 int[] getSelectedRows()
          get the indecies of the selected rows
 Object getSummary()
          get the summary for the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAccessibleTable

public JavaAccessibleTable(AccessibleTable table)
Constructor used to create an accessible table object. This constructor will usually be invoked from JavaAccessible and is not typically called by clients.

Parameters:
table - - AccessibleTable object
Method Detail

getCaption

public Object getCaption()
                  throws InvalidComponentException
get the caption for the table

Specified by:
getCaption in interface IAccessibleTableElement
Returns:
caption or an empty string if no caption is provided
Throws:
InvalidComponentException

getSummary

public Object getSummary()
                  throws InvalidComponentException
get the summary for the table

Specified by:
getSummary in interface IAccessibleTableElement
Returns:
summary or an empty string if no summary is provided
Throws:
InvalidComponentException

getColumnCount

public long getColumnCount()
                    throws InvalidComponentException
get the number of columns for the table

Specified by:
getColumnCount in interface IAccessibleTableElement
Returns:
column count
Throws:
InvalidComponentException

getRowCount

public long getRowCount()
                 throws InvalidComponentException
get the number of rows for the table

Specified by:
getRowCount in interface IAccessibleTableElement
Returns:
row count
Throws:
InvalidComponentException

getColumnDescription

public String getColumnDescription(long column)
                            throws InvalidComponentException
get the description for the specified column

Specified by:
getColumnDescription in interface IAccessibleTableElement
Parameters:
column - zero-based index of column
Returns:
row description or an empty string if column index is out of range
Throws:
InvalidComponentException

getRowDescription

public String getRowDescription(long row)
                         throws InvalidComponentException
get the description for the specified row

Specified by:
getRowDescription in interface IAccessibleTableElement
Parameters:
row - zero-based index of row
Returns:
row description or an empty string if row index is out of range
Throws:
InvalidComponentException

getSelectedColumns

public int[] getSelectedColumns()
                         throws InvalidComponentException
get the indecies of the selected columns

Specified by:
getSelectedColumns in interface IAccessibleTableElement
Returns:
an array of selected column indecies
Throws:
InvalidComponentException

getSelectedRows

public int[] getSelectedRows()
                      throws InvalidComponentException
get the indecies of the selected rows

Specified by:
getSelectedRows in interface IAccessibleTableElement
Returns:
an array of selected row indecies
Throws:
InvalidComponentException

getSelectedChildCount

public int getSelectedChildCount()
                          throws InvalidComponentException
Description copied from interface: IAccessibleTableElement
get the number of selected chidren for the table

Specified by:
getSelectedChildCount in interface IAccessibleTableElement
Returns:
selected children count
Throws:
InvalidComponentException

getSelectedChildren

public int[] getSelectedChildren()
                          throws InvalidComponentException
Description copied from interface: IAccessibleTableElement
get the indices of the selected Children

Specified by:
getSelectedChildren in interface IAccessibleTableElement
Returns:
an array of selected children indecies
Throws:
InvalidComponentException