Package com.hp.lft.sdk.powerbuilder
Interface Table
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportDragAndDrop,- SupportSendKeys,- TestObject,- TestObjectDescriber,- UiObjectBase,- UiObjectBase,- UiObjectWithLayoutInfo,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
A PowerBuilder table.
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivateCell(int row, int column) Double-clicks a cell by row and column indexes.voidactivateCell(int row, String columnHeader) Double-clicks a cell by row index and column header.evaluateExpression(String expression, int row) evaluateExpression uses the PowerBuilder Describe method to evaluate one expression involving values of a particular row and column.Returns a cell specified by row index and column header.intintgetRows()Returns theTableRowobjects in the table.getTableProperty(String property) The getTableProperty method uses the PowerBuilder Describe method to return the value of one property of a DataWindow object and controls within the DataWindow object.voidselectCell(int row, int column) Clicks a cell by row and column indexes.voidselectCell(int row, String columnHeader) Clicks a cell by row index and column header.voidselectRow(int row) Selects row by index.voidSelects row byTableRow.Methods inherited from interface com.hp.lft.sdk.DoubleClickabledoubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeyssendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectBasegetAttachedText, getObjectName, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowId, getWindowStyleMethods inherited from interface com.hp.lft.sdk.UiObjectBasegetHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectWithLayoutInfoisRightAligned, isRightToLeftLayout, isRightToLeftReadingMethods inherited from interface com.hp.lft.sdk.VisibleProviderisVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisible
- 
Method Details- 
getRowsReturns theTableRowobjects in the table.- Returns:
- the TableRowobjects in the table.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getCellReturns a cell specified by row index and column header.- Parameters:
- row- 0-based row index.
- columnHeader- the column header.
- Returns:
- the TableCell
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getColumnCount- Returns:
- The number of columns in the table.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getRowCount- Returns:
- The number of rows in the table.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
activateCellDouble-clicks a cell by row and column indexes.- Parameters:
- row- 0-based row index.
- column- 0-based column index.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
activateCellDouble-clicks a cell by row index and column header.- Parameters:
- row- 0-based row index.
- columnHeader- the column header.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectCellClicks a cell by row and column indexes.- Parameters:
- row- 0-based row index.
- column- 0-based column index.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectCellClicks a cell by row index and column header.- Parameters:
- row- 0-based row index.
- columnHeader- the column header.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectRowSelects row by index.- Parameters:
- row- 0-based indexes.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectRowSelects row byTableRow.- Parameters:
- row- the- TableRowobjects to select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTablePropertyThe getTableProperty method uses the PowerBuilder Describe method to return the value of one property of a DataWindow object and controls within the DataWindow object. Each column and graphic control in the DataWindow has a set of properties. You specify one property as a string, and getTableProperty returns the values of the property.- Parameters:
- property- Property name. Possible values: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc37783.1252/html/dwref/CCJBHCCF.htm
- Returns:
- A string that includes the value of property. Null if the specified property has no value. Example: pbTable.getTableProperty("DataWindow.Column.Count"); How to use PowerBuilder Describe method: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1252/html/dwref/BFCEADCH.htm The getTableProperty throws GeneralReplayException for invalid items. The getTableProperty returns null for property that have no value.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
evaluateExpressionevaluateExpression uses the PowerBuilder Describe method to evaluate one expression involving values of a particular row and column.- Parameters:
- expression- The expression you want to evaluate. In this expression, include a specification of the relevant column.Â
- row- The number of the row for which you want to evaluate the expression.
- Returns:
- The result of evaluating the expression. In the example below, evaluateExpression returns a string with the value of 1 or 0 depending on the value of the field1 column and row 2. Example: pbTable.evaluateExpression('If(field1 == 10, 1, 0)', 2); How to use PowerBuilder Describe method to evaluate an expression: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1252/html/dwref/BFCEADCH.htm The evaluateExpression throws GeneralReplayException for invalid expression.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-