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 TypeMethodDescriptionvoid
Double-clicks inside the text area at the cursor position.getText()
Returns the text value of the editor.void
select
(int startPos, int endPos) Selects the specified section of text and positions the cursor at the end of the selection.void
setCursorPosition
(int pos) Sets the cursor to the specified character position.void
Sets the specified text in the text area.void
setUnprotectedTextPart
(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
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
-
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
-