Package com.hp.lft.sdk.sap.gui
Interface TableBase<T extends TableCellBase>
- All Superinterfaces:
Element
,EnabledProvider
,LocationInfoProvider
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,WaitUntilEnabledProvider
The base interface for table, grid and APO grid controls in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateCell
(int row, int columnIndex) Double-clicks the specified cell.void
activateCell
(int row, String column) Double-clicks the specified cell.void
deselectColumn
(int... columnIndices) Unselects the specified columns.void
deselectColumn
(String... columns) Unselects the specified columns.void
deselectRow
(int... rowIndices) Unselects the specified rows.void
deselectRowRange
(int indexFrom, int indexTo) Unselects the specified rows.findAllRowsWithCellTextInColumn
(String text, int columnIndex) Finds all rows with this text in the specified column.findAllRowsWithCellTextInColumn
(String text, String column) Finds all rows with the specified text in the specified column.findRowWithCellTextInColumn
(String text, int columnIndex) Finds the first row with this text.findRowWithCellTextInColumn
(String text, int columnIndex, int startFromRow) Finds the first row with this text.findRowWithCellTextInColumn
(String text, String column) Finds the first row with this text.findRowWithCellTextInColumn
(String text, String column, int startFromRow) Finds the first row with this text.getRows()
Returns the list of rows in the test object.getTitle()
Returns the title of the object.void
selectCell
(int row, int columnIndex) Selects the specified cell.void
selectCell
(int row, String column) Selects the specified cell.void
selectColumn
(int... columnIndices) Selects the specified columns.void
selectColumn
(String... columns) Selects the specified columns.void
selectRow
(int... rowIndices) Selects the specified rows.void
selectRowRange
(int indexFrom, int indexTo) Selects the specified row range.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
getTitle
Returns the title of the object.- Returns:
- the title.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getRows
Returns the list of rows in the test object.- Returns:
- the list of rows.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activateCell
Double-clicks the specified cell.- Parameters:
row
- the 1-based row index.column
- the column name.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activateCell
Double-clicks the specified cell.- Parameters:
row
- the 1-based row index.columnIndex
- the 1-based column index.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectCell
Selects the specified cell.- Parameters:
row
- the 1-based row index.column
- the name of the column.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectCell
Selects the specified cell.- Parameters:
row
- the 1-based row index.columnIndex
- the 1-based column index.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectRow
Selects the specified rows.- Parameters:
rowIndices
- the 1-based row indexes.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectRowRange
Selects the specified row range.- Parameters:
indexTo
- the 1-based index of the start row.indexFrom
- the 1-based index of the end row.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectColumn
Selects the specified columns.- Parameters:
columns
- the names of the columns.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectColumn
Selects the specified columns.- Parameters:
columnIndices
- the 1-based column indexes.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectRow
Unselects the specified rows.- Parameters:
rowIndices
- the 1-based row indexes.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectRowRange
Unselects the specified rows.- Parameters:
indexTo
- the 1-based index of the start row.indexFrom
- the 1-based index of the end row.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectColumn
Unselects the specified columns.- Parameters:
columns
- the names of the columns.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectColumn
Unselects the specified columns.- Parameters:
columnIndices
- the 1-based column indexes.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
findRowWithCellTextInColumn
Finds the first row with this text.- Parameters:
text
- the text to find.column
- the name of the column to search.- Returns:
- the row.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
findRowWithCellTextInColumn
Finds the first row with this text.- Parameters:
text
- the text to find.columnIndex
- the 1-based column index.- Returns:
- the row.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
findRowWithCellTextInColumn
TableRow<T> findRowWithCellTextInColumn(String text, String column, int startFromRow) throws GeneralLeanFtException Finds the first row with this text.- Parameters:
text
- the text to find.column
- the name of the column to search.startFromRow
- the 1-based index of the row from which to search.- Returns:
- the row.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
findRowWithCellTextInColumn
TableRow<T> findRowWithCellTextInColumn(String text, int columnIndex, int startFromRow) throws GeneralLeanFtException Finds the first row with this text.- Parameters:
text
- the text to find.columnIndex
- the 1-based index of the column to search.startFromRow
- the 1-based index of the row from which to search.- Returns:
- the row.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
findAllRowsWithCellTextInColumn
List<TableRow<T>> findAllRowsWithCellTextInColumn(String text, int columnIndex) throws GeneralLeanFtException Finds all rows with this text in the specified column.- Parameters:
text
- the text to find.columnIndex
- the 1-based index of the column to search.- Returns:
- the rows.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
findAllRowsWithCellTextInColumn
List<TableRow<T>> findAllRowsWithCellTextInColumn(String text, String column) throws GeneralLeanFtException Finds all rows with the specified text in the specified column.- Parameters:
text
- the text to find.column
- the name of the column to search.- Returns:
- the rows.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-