Package com.hp.lft.sdk.sap.gui
Interface Label
- All Superinterfaces:
- Element,- LocationInfoProvider,- SupportsNativeObject,- TestObject,- TestObjectDescriber
A label control in a SAP GUI for Windows application.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the name of the icon used in the label.intReturns the maximum number of characters that can be displayed in the label.Returns the object's unique identifier relative to the parent window ID.getText()Returns either the text of the label or the icon name.booleanIndicates whether the label is highlighted.booleanIndicates whether the label is a numerical field.voidsetCursorPosition(int pos) Sets the position of the cursor within the static text label.voidsetFocus()Sets the focus on the static text label.Methods 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.TestObjectDescriberdescribe
- 
Method Details- 
getTextReturns either the text of the label or the icon name.- Returns:
- the text or the icon name.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isHighlightedIndicates whether the label is highlighted.- Returns:
- true if highlighted.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getIconNameReturns the name of the icon used in the label.- Returns:
- the name of the icon.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getMaxLengthReturns the maximum number of characters that can be displayed in the label.- Returns:
- the maximum number of characters.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isNumericalIndicates whether the label is a numerical field.- Returns:
- true if numerical.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getRelativeIdReturns the object's unique identifier relative to the parent window ID.- Returns:
- the UID in text format.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setCursorPositionSets the position of the cursor within the static text label.- Parameters:
- pos- the 0-based character position.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setFocusSets the focus on the static text label.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-