Interface ITable
A Java table.
Inherited Members
Namespace: HP.LFT.SDK.Java
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITable : ITableBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Properties
ColumnHeaders
Returns the column headers.
Declaration
ReadOnlyCollection<string> ColumnHeaders { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<string> |
Rows
Returns the ITableRow objects.
Declaration
ReadOnlyCollection<ITableRow> Rows { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<ITableRow> |
Methods
ActivateRow(int)
Double-clicks a row.
Declaration
void ActivateRow(int row)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | 0-based row number. |
DeselectColumns(params int[])
Unselects columns by column indexes.
Declaration
void DeselectColumns(params int[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | columns | 0-based indexes of the columns. |
Remarks
Important: This method is not supported for SWT tables.
DeselectColumns(params string[])
Unselects columns by column headers.
Declaration
void DeselectColumns(params string[] columnHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columnHeaders | Headers of the columns. |
Remarks
Important: This method is not supported for SWT tables.
DeselectColumnsRange(int, int)
Unselects a range of columns by column indexes.
Declaration
void DeselectColumnsRange(int fromColumn, int toColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromColumn | 0-based index of the first column. |
| int | toColumn | 0-based index of the last column. |
Remarks
Important: This method is not supported for SWT tables.
DeselectColumnsRange(string, string)
Unselects a range of columns by column headers.
Declaration
void DeselectColumnsRange(string fromColumnHeader, string toColumnHeader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fromColumnHeader | Header of the first column. |
| string | toColumnHeader | Header of the last column. |
Remarks
Important: This method is not supported for SWT tables.
DeselectRows(params ITableRow[])
Unselects rows by ITableRow.
Declaration
void DeselectRows(params ITableRow[] rows)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow[] | rows | The ITableRow objects. |
DeselectRows(params int[])
Unselects rows by row indexes.
Declaration
void DeselectRows(params int[] rows)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | rows | 0-based indexes. |
DeselectRowsRange(ITableRow, ITableRow)
Unselects a range of rows in a table by ITableRow.
Declaration
void DeselectRowsRange(ITableRow fromRow, ITableRow toRow)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow | fromRow | The first ITableRow. |
| ITableRow | toRow | The last ITableRow. |
ExtendSelectColumns(params int[])
Selects additional columns in the table.
Declaration
void ExtendSelectColumns(params int[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | columns | 0-based indexes. |
ExtendSelectColumns(params string[])
Selects additional columns in the table.
Declaration
void ExtendSelectColumns(params string[] columnHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columnHeaders | Headers of the columns. |
ExtendSelectColumnsRange(int, int)
Selects the specified range of additional columns in the table.
Declaration
void ExtendSelectColumnsRange(int fromColumn, int toColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromColumn | 0-based index of the first column in the range of columns you want to select. |
| int | toColumn | 0-based index of the last column in the range of columns you want to select. |
ExtendSelectColumnsRange(string, string)
Selects the specified range of additional columns in the table.
Declaration
void ExtendSelectColumnsRange(string fromColumnHeader, string toColumnHeader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fromColumnHeader | Header of the first column in the range of columns you want to select. |
| string | toColumnHeader | Header of the last column in the range of columns you want to select. |
ExtendSelectRows(params ITableRow[])
Selects additional rows in the table.
Declaration
void ExtendSelectRows(params ITableRow[] rows)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow[] | rows | The ITableRow objects. |
ExtendSelectRows(params int[])
Selects additional rows in the table.
Declaration
void ExtendSelectRows(params int[] rows)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | rows | 0-based indexes to select. |
ExtendSelectRowsRange(ITableRow, ITableRow)
Selects the specified range of additional rows in the table.
Declaration
void ExtendSelectRowsRange(ITableRow fromRow, ITableRow toRow)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow | fromRow | The first ITableRow. |
| ITableRow | toRow | The last ITableRow. |
ExtendSelectRowsRange(int, int)
Selects the specified range of additional rows in the table.
Declaration
void ExtendSelectRowsRange(int fromRow, int toRow)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromRow | 0-based index of the first row. |
| int | toRow | 0-based index of the last row. |
GetCell(int, string)
Returns a cell specified by row index and column header.
Declaration
ITableCell GetCell(int row, string columnHeader)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | 0-based row number. |
| string | columnHeader | The column header. |
Returns
| Type | Description |
|---|---|
| ITableCell |
GetTableCellValues(ITableRow, ITableRow)
Returns the content of all cells contained in a range of rows.
Declaration
string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow | startRow | The first row in the range. |
| ITableRow | endRow | The last row in the range. |
Returns
| Type | Description |
|---|---|
| string[][] |
GetTableCellValues(ITableRow, ITableRow, int, int)
Returns the content of all cells contained in an area of the table. The area is defined by a range of rows and a range of column indices.
Declaration
string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow, int startColumnIndex, int endColumnIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow | startRow | The first row in the range. |
| ITableRow | endRow | The last row in the range. |
| int | startColumnIndex | The 0-based number of the first column in the range. |
| int | endColumnIndex | The 0-based number of the last column in the range. |
Returns
| Type | Description |
|---|---|
| string[][] |
GetTableCellValues(ITableRow, ITableRow, string, string)
Returns the content of all cells contained in an area of the table. The area is defined by a range of rows and a range of column names.
Declaration
string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow, string startColumnName, string endColumnName)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow | startRow | The first row in the range. |
| ITableRow | endRow | The last row in the range. |
| string | startColumnName | The name of the first column in the range. |
| string | endColumnName | The name of the last column in the range. |
Returns
| Type | Description |
|---|---|
| string[][] |
SelectColumnHeader(int, MouseButton)
Clicks on a column header of a table using the specified MouseButton by column index.
Declaration
void SelectColumnHeader(int column, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| int | column | 0-based index of the column. |
| MouseButton | button | Either the Left or Right button value of MouseButton. |
SelectColumnHeader(string, MouseButton)
Clicks on a column header using the specified MouseButton by column header.
Declaration
void SelectColumnHeader(string columnHeader, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnHeader | The header of the column. |
| MouseButton | button | Either the Left or Right button value of MouseButton. |
SelectColumns(params int[])
Selects columns by column indexes.
Declaration
void SelectColumns(params int[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | columns | 0-based indexes. |
SelectColumns(params string[])
Selects columns by column headers.
Declaration
void SelectColumns(params string[] columnHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columnHeaders | Headers of the columns. |
SelectRows(params ITableRow[])
Selects rows by ITableRow.
Declaration
void SelectRows(params ITableRow[] rows)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow[] | rows | The ITableRow objects |
SelectRows(params int[])
Selects rows indexes.
Declaration
void SelectRows(params int[] rows)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | rows | 0-based indexes. |
SelectRowsRange(ITableRow, ITableRow)
Selects a range of rows by row object.
Declaration
void SelectRowsRange(ITableRow fromRow, ITableRow toRow)
Parameters
| Type | Name | Description |
|---|---|---|
| ITableRow | fromRow | The first ITableRow. |
| ITableRow | toRow | The last ITableRow. |