Table of Contents

Interface ITable

Namespace
HP.LFT.SDK.Java
Assembly
HP.LFT.SDK.dll

A Java table.

public interface ITable : ITableBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

ColumnHeaders

Returns the column headers.

ReadOnlyCollection<string> ColumnHeaders { get; }

Property Value

ReadOnlyCollection<string>

Rows

Returns the ITableRow objects.

ReadOnlyCollection<ITableRow> Rows { get; }

Property Value

ReadOnlyCollection<ITableRow>

Methods

ActivateRow(int)

Double-clicks a row.

void ActivateRow(int row)

Parameters

row int

0-based row number.

DeselectColumns(params int[])

Unselects columns by column indexes.

void DeselectColumns(params int[] columns)

Parameters

columns int[]

0-based indexes of the columns.

Remarks

Important: This method is not supported for SWT tables.

DeselectColumns(params string[])

Unselects columns by column headers.

void DeselectColumns(params string[] columnHeaders)

Parameters

columnHeaders string[]

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.

void DeselectColumnsRange(int fromColumn, int toColumn)

Parameters

fromColumn int

0-based index of the first column.

toColumn int

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.

void DeselectColumnsRange(string fromColumnHeader, string toColumnHeader)

Parameters

fromColumnHeader string

Header of the first column.

toColumnHeader string

Header of the last column.

Remarks

Important: This method is not supported for SWT tables.

DeselectRows(params ITableRow[])

Unselects rows by ITableRow.

void DeselectRows(params ITableRow[] rows)

Parameters

rows ITableRow[]

The ITableRow objects.

DeselectRows(params int[])

Unselects rows by row indexes.

void DeselectRows(params int[] rows)

Parameters

rows int[]

0-based indexes.

DeselectRowsRange(ITableRow, ITableRow)

Unselects a range of rows in a table by ITableRow.

void DeselectRowsRange(ITableRow fromRow, ITableRow toRow)

Parameters

fromRow ITableRow

The first ITableRow.

toRow ITableRow

The last ITableRow.

ExtendSelectColumns(params int[])

Selects additional columns in the table.

void ExtendSelectColumns(params int[] columns)

Parameters

columns int[]

0-based indexes.

ExtendSelectColumns(params string[])

Selects additional columns in the table.

void ExtendSelectColumns(params string[] columnHeaders)

Parameters

columnHeaders string[]

Headers of the columns.

ExtendSelectColumnsRange(int, int)

Selects the specified range of additional columns in the table.

void ExtendSelectColumnsRange(int fromColumn, int toColumn)

Parameters

fromColumn int

0-based index of the first column in the range of columns you want to select.

toColumn int

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.

void ExtendSelectColumnsRange(string fromColumnHeader, string toColumnHeader)

Parameters

fromColumnHeader string

Header of the first column in the range of columns you want to select.

toColumnHeader string

Header of the last column in the range of columns you want to select.

ExtendSelectRows(params ITableRow[])

Selects additional rows in the table.

void ExtendSelectRows(params ITableRow[] rows)

Parameters

rows ITableRow[]

The ITableRow objects.

ExtendSelectRows(params int[])

Selects additional rows in the table.

void ExtendSelectRows(params int[] rows)

Parameters

rows int[]

0-based indexes to select.

ExtendSelectRowsRange(ITableRow, ITableRow)

Selects the specified range of additional rows in the table.

void ExtendSelectRowsRange(ITableRow fromRow, ITableRow toRow)

Parameters

fromRow ITableRow

The first ITableRow.

toRow ITableRow

The last ITableRow.

ExtendSelectRowsRange(int, int)

Selects the specified range of additional rows in the table.

void ExtendSelectRowsRange(int fromRow, int toRow)

Parameters

fromRow int

0-based index of the first row.

toRow int

0-based index of the last row.

GetCell(int, string)

Returns a cell specified by row index and column header.

ITableCell GetCell(int row, string columnHeader)

Parameters

row int

0-based row number.

columnHeader string

The column header.

Returns

ITableCell

GetTableCellValues(ITableRow, ITableRow)

Returns the content of all cells contained in a range of rows.

string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow)

Parameters

startRow ITableRow

The first row in the range.

endRow ITableRow

The last row in the range.

Returns

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.

string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow, int startColumnIndex, int endColumnIndex)

Parameters

startRow ITableRow

The first row in the range.

endRow ITableRow

The last row in the range.

startColumnIndex int

The 0-based number of the first column in the range.

endColumnIndex int

The 0-based number of the last column in the range.

Returns

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.

string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow, string startColumnName, string endColumnName)

Parameters

startRow ITableRow

The first row in the range.

endRow ITableRow

The last row in the range.

startColumnName string

The name of the first column in the range.

endColumnName string

The name of the last column in the range.

Returns

string[][]

SelectColumnHeader(int, MouseButton)

Clicks on a column header of a table using the specified MouseButton by column index.

void SelectColumnHeader(int column, MouseButton button = MouseButton.Left)

Parameters

column int

0-based index of the column.

button MouseButton

Either the Left or Right button value of MouseButton.

SelectColumnHeader(string, MouseButton)

Clicks on a column header using the specified MouseButton by column header.

void SelectColumnHeader(string columnHeader, MouseButton button = MouseButton.Left)

Parameters

columnHeader string

The header of the column.

button MouseButton

Either the Left or Right button value of MouseButton.

SelectColumns(params int[])

Selects columns by column indexes.

void SelectColumns(params int[] columns)

Parameters

columns int[]

0-based indexes.

SelectColumns(params string[])

Selects columns by column headers.

void SelectColumns(params string[] columnHeaders)

Parameters

columnHeaders string[]

Headers of the columns.

SelectRows(params ITableRow[])

Selects rows by ITableRow.

void SelectRows(params ITableRow[] rows)

Parameters

rows ITableRow[]

The ITableRow objects

SelectRows(params int[])

Selects rows indexes.

void SelectRows(params int[] rows)

Parameters

rows int[]

0-based indexes.

SelectRowsRange(ITableRow, ITableRow)

Selects a range of rows by row object.

void SelectRowsRange(ITableRow fromRow, ITableRow toRow)

Parameters

fromRow ITableRow

The first ITableRow.

toRow ITableRow

The last ITableRow.