Class ComboBoxDescription

java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class ComboBoxDescription extends ElementDescription
Description of a SAP GUI for Windows combo box.
  • Constructor Details

    • ComboBoxDescription

      public ComboBoxDescription()
      Initializes a new instance of the ComboBoxDescription class.
    • ComboBoxDescription

      protected ComboBoxDescription(ComboBoxDescription.Init<?> init)
      Initializes a new instance of the ComboBoxDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setSelectedItem

      public void setSelectedItem(String item)
      Sets the selected item in the combo box.
      Parameters:
      item - the selected item.
    • setSelectedItem

      public void setSelectedItem(StringProperty item)
      Sets the selected item in the combo box.
      Parameters:
      item - a StringProperty or RegExpProperty.
    • getSelectedItem

      public StringProperty getSelectedItem()
      Returns the selected item in the combo box.
      Returns:
      the selected item.
    • setEnabled

      public void setEnabled(Boolean isEnabled)
      Sets whether the object can accept user input.
      Parameters:
      isEnabled - true if enabled.
    • isEnabled

      public Boolean isEnabled()
      Indicates whether the object can accept user input.
      Returns:
      true if enabled.
    • setItems

      public void setItems(String[] items)
      Sets the list of items in the control.
      Parameters:
      items - the list of items.
    • getItems

      public String[] getItems()
      Returns the list of items in the control.
      Returns:
      the list of items.
    • setItemsCount

      public void setItemsCount(Integer itemsCount)
      Sets the number of items contained in the combo box.
      Parameters:
      itemsCount - the number of items.
    • getItemsCount

      public Integer getItemsCount()
      Gets the number of items contained in the combo box.
      Returns:
      the number of items.