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 Summary
Modifier and TypeMethodDescriptionReturns the name of the icon used in the label.int
Returns 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.boolean
Indicates whether the label is highlighted.boolean
Indicates whether the label is a numerical field.void
setCursorPosition
(int pos) Sets the position of the cursor within the static text label.void
setFocus()
Sets the focus on the static text label.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
-
Method Details
-
getText
Returns either the text of the label or the icon name.- Returns:
- the text or the icon name.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isHighlighted
Indicates whether the label is highlighted.- Returns:
- true if highlighted.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getIconName
Returns the name of the icon used in the label.- Returns:
- the name of the icon.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getMaxLength
Returns 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
-
isNumerical
Indicates whether the label is a numerical field.- Returns:
- true if numerical.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getRelativeId
Returns the object's unique identifier relative to the parent window ID.- Returns:
- the UID in text format.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setCursorPosition
Sets the position of the cursor within the static text label.- Parameters:
pos
- the 0-based character position.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setFocus
Sets the focus on the static text label.- Throws:
GeneralLeanFtException
- if error occurs during execution
-