Package com.hp.lft.sdk.sap.gui
Class ComboBoxDescription
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.ComboBoxDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
Description of a SAP GUI for Windows combo box.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the ComboBoxDescription class using the builder pattern.protected static class
ComboBoxDescription.Init<T extends ComboBoxDescription.Init<T>>
Helper class for ComboBoxDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the ComboBoxDescription class.protected
Initializes a new instance of the ComboBoxDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionString[]
getItems()
Returns the list of items in the control.Gets the number of items contained in the combo box.Returns the selected item in the combo box.Indicates whether the object can accept user input.void
setEnabled
(Boolean isEnabled) Sets whether the object can accept user input.void
Sets the list of items in the control.void
setItemsCount
(Integer itemsCount) Sets the number of items contained in the combo box.void
Sets the selected item in the combo box.void
setSelectedItem
(String item) Sets the selected item in the combo box.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
-
ComboBoxDescription
public ComboBoxDescription()Initializes a new instance of the ComboBoxDescription class. -
ComboBoxDescription
Initializes a new instance of the ComboBoxDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setSelectedItem
Sets the selected item in the combo box.- Parameters:
item
- the selected item.
-
setSelectedItem
Sets the selected item in the combo box.- Parameters:
item
- aStringProperty
orRegExpProperty
.
-
getSelectedItem
Returns the selected item in the combo box.- Returns:
- the selected item.
-
setEnabled
Sets whether the object can accept user input.- Parameters:
isEnabled
- true if enabled.
-
isEnabled
Indicates whether the object can accept user input.- Returns:
- true if enabled.
-
setItems
Sets the list of items in the control.- Parameters:
items
- the list of items.
-
getItems
Returns the list of items in the control.- Returns:
- the list of items.
-
setItemsCount
Sets the number of items contained in the combo box.- Parameters:
itemsCount
- the number of items.
-
getItemsCount
Gets the number of items contained in the combo box.- Returns:
- the number of items.
-