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 classThis class can be used to construct an instance of the ComboBoxDescription class using the builder pattern.protected static classComboBoxDescription.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.protectedInitializes 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.voidsetEnabled(Boolean isEnabled) Sets whether the object can accept user input.voidSets the list of items in the control.voidsetItemsCount(Integer itemsCount) Sets the number of items contained in the combo box.voidSets the selected item in the combo box.voidsetSelectedItem(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, 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
-
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- aStringPropertyorRegExpProperty.
-
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.
-