Package com.hp.lft.sdk.winforms
Interface XtraGrid
- All Superinterfaces:
CustomGrid
A DevExpress XtraGrid control.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateCell
(int row, String columnHeader) Double-clicks the specified cell in this grid.void
activateColumn
(int colum) Double-clicks the specified column header in this grid.void
activateColumn
(String columnHeader) Double-clicks the specified column header in this grid.getCell
(int row, int column) Returns a cell in the grid.Returns a cell in the grid.int
Returns the number of columns in the current view.int
Returns the number of rows in the current view.void
groupRows
(int column) Groups table rows according to the specified column.void
Groups table rows according to the specified column.void
makeCellVisible
(int row, String columnHeader) Scrolls the specified cell into view.void
selectCell
(int row, String columnHeader) Selects (clicks) the specified cell in this grid.void
selectColumn
(int column) Clicks the specified column header in this grid.void
selectColumn
(String columnHeader) Clicks the specified column header in this grid.void
Applies the specified filter string to the specified column.void
Applies the specified filter string to the specified column.void
Expands the parent rows of the specified view and makes it the current view.
A SetView statement without parameters must be used before the first operation on an XtraGrid table.void
sort
(int column) Sorts this table by the specified column, ascending.void
Sorts this table by the specified column, ascending.void
sortDescending
(int column) Sorts this table by the specified column, descending.void
sortDescending
(String columnHeader) Sorts this table by the specified column, descending.void
ungroupRows
(int column) Ungroups table rows according to the specified columnvoid
ungroupRows
(String columnHeader) Ungroups table rows according to the specified columnMethods inherited from interface com.hp.lft.sdk.winforms.CustomGrid
getTableTestObject
-
Method Details
-
activateCell
Double-clicks the specified cell in this grid.- Parameters:
row
- 0-based row number.columnHeader
- the column caption.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
makeCellVisible
Scrolls the specified cell into view.- Parameters:
row
- 0-based row number.columnHeader
- the column caption.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activateColumn
Double-clicks the specified column header in this grid.- Parameters:
colum
- 0-based column index- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activateColumn
Double-clicks the specified column header in this grid.- Parameters:
columnHeader
- the column caption.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getCell
Returns a cell in the grid.- Parameters:
row
- 0-based row numbercolumnHeader
- the column caption- Returns:
- the cell
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getCell
Returns a cell in the grid.- Parameters:
row
- 0-based row numbercolumn
- 0-based column index- Returns:
- the cell
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
groupRows
Groups table rows according to the specified column.- Parameters:
column
- 0-based column index- Throws:
GeneralLeanFtException
- if error occurs during execution
-
groupRows
Groups table rows according to the specified column.- Parameters:
columnHeader
- the column caption- Throws:
GeneralLeanFtException
- if error occurs during execution
-
ungroupRows
Ungroups table rows according to the specified column- Parameters:
column
- 0-based column index- Throws:
GeneralLeanFtException
- if error occurs during execution
-
ungroupRows
Ungroups table rows according to the specified column- Parameters:
columnHeader
- the column caption- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectCell
Selects (clicks) the specified cell in this grid.- Parameters:
row
- 0-based row number.columnHeader
- the column caption.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectColumn
Clicks the specified column header in this grid.- Parameters:
column
- 0-based column index- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectColumn
Clicks the specified column header in this grid.- Parameters:
columnHeader
- the column caption- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setFilter
Applies the specified filter string to the specified column.- Parameters:
column
- 0-based column indexfilter
- a value in the column to be used as the filter- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setFilter
Applies the specified filter string to the specified column.- Parameters:
columnHeader
- the column captionfilter
- a value in the column to be used as the filter- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setView
void setView(org.glassfish.grizzly.utils.Pair<Integer, String>... viewPath) throws GeneralLeanFtExceptionExpands the parent rows of the specified view and makes it the current view.
A SetView statement without parameters must be used before the first operation on an XtraGrid table. If your test contains steps on more than one XtraGrid table, ensure that you add a SetView without parameters statement before the first step on each grid.- Parameters:
viewPath
- the hierarchical path of the view to display expressed using tuples in format: (0-based row number, relation name)- Throws:
GeneralLeanFtException
- if error occurs during execution
-
sort
Sorts this table by the specified column, ascending.- Parameters:
column
- 0-based column index- Throws:
GeneralLeanFtException
- if error occurs during execution
-
sort
Sorts this table by the specified column, ascending.- Parameters:
columnHeader
- the column caption- Throws:
GeneralLeanFtException
- if error occurs during execution
-
sortDescending
Sorts this table by the specified column, descending.- Parameters:
column
- 0-based column index- Throws:
GeneralLeanFtException
- if error occurs during execution
-
sortDescending
Sorts this table by the specified column, descending.- Parameters:
columnHeader
- the column caption- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getRowCount
Returns the number of rows in the current view.- Returns:
- the row count
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getColumnCount
Returns the number of columns in the current view.- Returns:
- the column count
- Throws:
GeneralLeanFtException
- if error occurs during execution
-