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 classThis class can be used to construct an instance of the LabelDescription class using the builder pattern.protected static classLabelDescription.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.protectedLabelDescription(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.voidsetHighlighted(Boolean isHighlighted) Sets whether the label is highlighted.voidsetIconName(StringProperty iconName) Sets the name of the icon used in the label.voidsetIconName(String iconName) Sets the name of the icon used in the label.voidsetMaxLength(Integer maxLength) Sets the maximum number of characters that can be displayed in the label.voidsetNumerical(Boolean isNumerical) Sets whether the label is a numerical field.voidsetRelativeId(StringProperty relativeId) Sets the object's unique identifier relative to the parent window ID in text format.voidsetRelativeId(String relativeId) Sets the object's unique identifier relative to the parent window ID.voidsetText(StringProperty text) Sets the the text of the label.voidSets 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, setTypeMethods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- aStringPropertyorRegExpProperty.
-
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- aStringPropertyorRegExpProperty.
-
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- aStringPropertyorRegExpProperty.
-
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.
-