Package com.hp.lft.sdk.sap.gui
Class ButtonDescription
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.ButtonDescription
- All Implemented Interfaces:
CloneableObject,Description,com.hp.lft.sdk.internal.DescriptionWithVri,Cloneable
Description of a SAP GUI for Windows button.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the ButtonDescription class using the builder pattern.protected static classButtonDescription.Init<T extends ButtonDescription.Init<T>>Helper class for ButtonDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the ButtonDescription class.protectedButtonDescription(ButtonDescription.Init<?> init) Initializes a new instance of the ButtonDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the parent object.getText()Returns the text associated with the object.Returns the text of the label.Indicates whether the object can accept user input.voidsetContainerName(StringProperty containerName) Sets the name of the parent object.voidsetContainerName(String containerName) Sets the name of the parent object.voidsetEnabled(Boolean isEnabled) Sets whether the object can accept user input.voidsetText(StringProperty text) Sets the text associated with the object.voidSets the text associated with the object.voidsetTooltip(StringProperty tooltip) Sets the value of the object's tooltip.voidsetTooltip(String tooltip) Sets the value of the object's tooltip.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
-
ButtonDescription
public ButtonDescription()Initializes a new instance of the ButtonDescription class. -
ButtonDescription
Initializes a new instance of the ButtonDescription class using the Builder pattern.- Parameters:
init- the Builder pattern.
-
-
Method Details
-
setTooltip
Sets the value of the object's tooltip.- Parameters:
tooltip- aStringPropertyorRegExpProperty.
-
setTooltip
Sets the value of the object's tooltip.- Parameters:
tooltip- the value of the object's tooltip.
-
getTooltip
Returns the text of the label.- Returns:
- a StringProperty representing the text of the label.
-
setContainerName
Sets the name of the parent object.- Parameters:
containerName- aStringPropertyorRegExpProperty.
-
setContainerName
Sets the name of the parent object.- Parameters:
containerName- the name of the parent object.
-
getContainerName
Returns the name of the parent object.- Returns:
- a StringProperty representing the name of the parent object.
-
setText
Sets the text associated with the object.- Parameters:
text- aStringPropertyorRegExpProperty.
-
setText
Sets the text associated with the object.- Parameters:
text- the text associated with the object.
-
getText
Returns the text associated with the object.- Returns:
- the a StringProperty representing text associated with the object.
-
setEnabled
Sets whether the object can accept user input.- Parameters:
isEnabled- true to set as enabled.
-
isEnabled
Indicates whether the object can accept user input.- Returns:
- true if enabled.
-