Package com.hp.lft.sdk.sap.nwbc
Interface OKCode
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportDragAndDrop,SupportSendKeys,SupportsNativeObject,TestObject,TestObjectDescriber,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
An OK Code box in a SAP NetWeaver Business Client application.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetMultiLineSelection(int lineFrom, int columnFrom, int lineTo, int ColumnTo) Selects the text in a multi-line edit box.voidsetSingleLineSelection(int columnFrom, int ColumnTo) Selects the text in a single-line edit box.voidSets the value of the edit box.voidsubmit()Submits the entered information.booleanIndicates whether the edit box supports text selection.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDrop
dragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods 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, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.sap.nwbc.UiObjectBase
getSupportedPatterns, makeVisible, mouseMove, showContextMenu, typeMethods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
setText
Sets the value of the edit box.- Parameters:
text- The text to be entered in the edit box.- Throws:
GeneralLeanFtException- if an error occurs during the operation.
-
submit
Submits the entered information.- Throws:
GeneralLeanFtException- if an error occurs during the operation.
-
setSingleLineSelection
Selects the text in a single-line edit box. All positions are 0-based.- Parameters:
columnFrom- The column at which the selection starts (in characters).ColumnTo- The column at which the selection ends (in characters).- Throws:
GeneralLeanFtException
-
setMultiLineSelection
void setMultiLineSelection(int lineFrom, int columnFrom, int lineTo, int ColumnTo) throws GeneralLeanFtException Selects the text in a multi-line edit box. All positions are 0-based.- Parameters:
lineFrom- The line at which the selection starts.columnFrom- The column at which the selection starts (in characters).lineTo- The line at which the selection ends.ColumnTo- The column at which the selection ends (in characters).- Throws:
GeneralLeanFtException
-
supportsTextSelection
Indicates whether the edit box supports text selection.- Returns:
- true if the edit box supports text selection; otherwise, false.
- Throws:
GeneralLeanFtException
-