Package com.hp.lft.sdk.sap.gui
Class LabelDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.sap.gui.ElementDescription
com.hp.lft.sdk.sap.gui.LabelDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
Description of a SAP GUI for Windows label.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the LabelDescription class using the builder pattern.protected static class
LabelDescription.Init<T extends LabelDescription.Init<T>>
Helper class for LabelDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the LabelDescription class.protected
LabelDescription
(LabelDescription.Init<?> init) Initializes a new instance of the LabelDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the icon used within the label.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 in text format.getText()
Returns the text of the label.Indicates whether the label is highlighted.Indicates whether the label is a numerical field.void
setHighlighted
(Boolean isHighlighted) Sets whether the label is highlighted.void
setIconName
(StringProperty iconName) Sets the name of the icon used in the label.void
setIconName
(String iconName) Sets the name of the icon used in the label.void
setMaxLength
(Integer maxLength) Sets the maximum number of characters that can be displayed in the label.void
setNumerical
(Boolean isNumerical) Sets whether the label is a numerical field.void
setRelativeId
(StringProperty relativeId) Sets the object's unique identifier relative to the parent window ID in text format.void
setRelativeId
(String relativeId) Sets the object's unique identifier relative to the parent window ID.void
setText
(StringProperty text) Sets the the text of the label.void
Sets the the text of the label.Methods inherited from class com.hp.lft.sdk.sap.gui.ElementDescription
getAbsoluteLocation, getId, getLocation, getName, getSize, getType, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setId, setId, setLocation, setLocation, setLocation, setName, setName, setSize, setSize, setSize, setType
Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
LabelDescription
public LabelDescription()Initializes a new instance of the LabelDescription class. -
LabelDescription
Initializes a new instance of the LabelDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setText
Sets the the text of the label.- Parameters:
text
- aStringProperty
orRegExpProperty
.
-
setText
Sets the the text of the label.- Parameters:
text
- the text.
-
getText
Returns the text of the label.- Returns:
- the text.
-
setHighlighted
Sets whether the label is highlighted.- Parameters:
isHighlighted
- true to set highlighted.
-
isHighlighted
Indicates whether the label is highlighted.- Returns:
- true if highlighted.
-
setIconName
Sets the name of the icon used in the label.- Parameters:
iconName
- aStringProperty
orRegExpProperty
.
-
setIconName
Sets the name of the icon used in the label.- Parameters:
iconName
- name of the icon.
-
getIconName
Returns the name of the icon used within the label.- Returns:
- the name of the icon.
-
setMaxLength
Sets the maximum number of characters that can be displayed in the label.- Parameters:
maxLength
- the maximum number of characters.
-
getMaxLength
Returns the maximum number of characters that can be displayed in the label.- Returns:
- the maximum number of characters.
-
setNumerical
Sets whether the label is a numerical field.- Parameters:
isNumerical
- true to set as numerical field.
-
isNumerical
Indicates whether the label is a numerical field.- Returns:
- true if numerical field.
-
setRelativeId
Sets the object's unique identifier relative to the parent window ID in text format.- Parameters:
relativeId
- aStringProperty
orRegExpProperty
.
-
setRelativeId
Sets the object's unique identifier relative to the parent window ID.- Parameters:
relativeId
- the UID in text format.
-
getRelativeId
Returns the object's unique identifier relative to the parent window ID in text format.- Returns:
- the UID in text format.
-