Package com.hp.lft.sdk.java
Interface Editor
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- UiObjectBase,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
A Java edit box.
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivate()Activates the edit box.voidClicks the specified link in the edit box.voiddelete(int fromLine, int fromCharPos, int toLine, int toCharPos) Deletes the specified text.getText()Returns the object's text.voidInserts text into the specified location in the edit box.booleanIndicates whether the object is read only.voidReplaces text.voidselect(int fromLine, int fromCharPos, int toLine, int toCharPos) Selects text in the edit box.voidsetCursorPosition(int line, int charPos) Places the cursor at the specified location in the edit box.voidsetFocus()Sets the focus on the edit box.voidSets the encoded value of this edit box.voidSets the text of the edit box.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.SupportsNativeObjectgetNativeObjectMethods 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.java.UiObjectBasecreateObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeysMethods 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- 
activateActivates the edit box.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
clickLinkClicks the specified link in the edit box.- Parameters:
- linkName- the name of the link to click.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
deleteDeletes the specified text. All positions are 0-based.- Parameters:
- fromLine- the line in which the deletion starts.
- fromCharPos- the character position at which the deletion starts in the first line, inclusive.
- toLine- the line in which the deletion ends.
- toCharPos- the character position at which the deletion ends in the last line, inclusive.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
insertInserts text into the specified location in the edit box. All positions are 0-based.- Parameters:
- text- the string to insert.
- line- the line in which to insert the text.
- charPos- the character position at which to insert the text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
replacevoid replace(String text, int fromLine, int fromCharPos, int toLine, int toCharPos) throws GeneralLeanFtException Replaces text.- Parameters:
- text- the text that replaces the existing text.
- fromLine- the line in which the replacement starts.
- fromCharPos- the character position at which the replacement starts in the first line, inclusive.
- toLine- the line in which the replacement ends.
- toCharPos- the character position at which the replacement ends in the last line, inclusive.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setTextSets the text of the edit box.- Parameters:
- text- the text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setFocusSets the focus on the edit box.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setSecureSets the encoded value of this edit box.
 The SetSecure method enables you to hide passwords displayed on the screen while running or editing a test. This method is not a secure way to protect password information.
 Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available from the OpenText Functional Testing for Developers menu in your IDE, or from the OpenText Functional Testing for Developers installation\bin folder.- Parameters:
- encryptedText- the encoded text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects text in the edit box. All positions are 0-based.- Parameters:
- fromLine- the line in which the selection starts.
- fromCharPos- the character position at which the selection starts in the first line, inclusive.
- toLine- the line in which the selection ends.
- toCharPos- the character position at which the selection ends in the last line, inclusive.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isReadOnlyIndicates whether the object is read only.- Returns:
- true if the object is read only.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTextReturns the object's text.- Returns:
- the text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setCursorPositionPlaces the cursor at the specified location in the edit box. All positions are 0-based.- Parameters:
- line- the line in which the cursor is placed.
- charPos- the character position at which the cursor is placed.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-