Package com.hp.lft.sdk.sap.gui
Interface Editor
- All Superinterfaces:
Element,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TestObject,TestObjectDescriber,WaitUntilEnabledProvider
A text area control in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDouble-clicks inside the text area at the cursor position.getText()Returns the text value of the editor.voidselect(int startPos, int endPos) Selects the specified section of text and positions the cursor at the end of the selection.voidsetCursorPosition(int pos) Sets the cursor to the specified character position.voidSets the specified text in the text area.voidsetUnprotectedTextPart(String text, int sectionNumber) Sets the specified text in the predefined unprotected sections of the text area.Methods 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.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.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
getText
Returns the text value of the editor.- Returns:
- the text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
doubleClick
Double-clicks inside the text area at the cursor position.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setText
Sets the specified text in the text area.- Parameters:
text- the text.- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects the specified section of text and positions the cursor at the end of the selection.- Parameters:
startPos- the 0-based position of the first character.endPos- the 0-based position of the last character.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setCursorPosition
Sets the cursor to the specified character position.- Parameters:
pos- the character position.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setUnprotectedTextPart
Sets the specified text in the predefined unprotected sections of the text area.- Parameters:
text- the text .sectionNumber- The 1-based index of the unprotected section in which the text is set. Unprotected sections of the text area are numbered from top to bottom.- Throws:
GeneralLeanFtException- if error occurs during execution
-