Package com.hp.lft.sdk.uiapro
Interface GridPattern
public interface GridPattern
The methods and properties used to interact with a grid control; a container control that can be traversed by row and column.
The children of this element support the
GridItemPattern
pattern.-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateCell
(int row, int column) Activates (double-clicks) the specified cell in the grid.void
addCellToSelection
(int row, int column) Selects a cell in addition to previously selected cells.void
addRowToSelection
(int row) Selects a row in addition to previously selected rows.void
clickCell
(int row, int column) Clicks the specified cell in the grid.void
clickCell
(int row, int column, MouseButton button) Clicks the specified cell in the grid.getCell
(int row, int column) getCellName
(int row, int column) getCellText
(int row, int column) getCellValue
(int row, int column) int
int
void
selectCell
(int row, int column) Selects a cell in the grid.void
selectRow
(int row) Selects a row in the grid.void
setCellValue
(int row, int column, String cellValue) Sets the specified cell's value using the IValuePattern pattern.
-
Method Details
-
getRowCount
- Returns:
- The number of rows in the grid.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getColumnCount
- Returns:
- The number of columns in the grid.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
activateCell
Activates (double-clicks) the specified cell in the grid.- Parameters:
row
- The cell row indexcolumn
- The cell column index- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
addCellToSelection
Selects a cell in addition to previously selected cells.- Parameters:
row
- The cell row indexcolumn
- The cell column index- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
addRowToSelection
Selects a row in addition to previously selected rows.- Parameters:
row
- The row to select.- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
clickCell
Clicks the specified cell in the grid.- Parameters:
row
- The cell row indexcolumn
- The cell column index- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
clickCell
Clicks the specified cell in the grid.- Parameters:
row
- The cell row indexcolumn
- The cell column indexbutton
- The mouse button used to perform the cell click.- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getCell
- Parameters:
row
- The cell row indexcolumn
- The cell column index- Returns:
- Retrieves a UIAPro object representing an item in the grid.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getCellName
- Parameters:
row
- The cell row indexcolumn
- The cell column index- Returns:
- the value of the name property for the specified cell.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getCellText
- Parameters:
row
- The cell row indexcolumn
- The cell column index- Returns:
- the text provided by the cell's ITextPattern pattern.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getCellValue
- Parameters:
row
- The cell row indexcolumn
- The cell column index- Returns:
- the value provided by the cell IValuePattern pattern.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
setCellValue
Sets the specified cell's value using the IValuePattern pattern.- Parameters:
row
- The cell row indexcolumn
- The cell column indexcellValue
- The cell value to set- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
selectRow
Selects a row in the grid.- Parameters:
row
- The row to select- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
selectCell
Selects a cell in the grid.- Parameters:
row
- The cell row indexcolumn
- The cell column index- Throws:
GeneralLeanFtException
- if error occurs during execution.
-