Class ComboItem

java.lang.Object
net.sourceforge.jnlp.controlpanel.ComboItem

public class ComboItem extends Object
This is to be used with combobox items. Allows storing a value which differs from the key.
  • Constructor Details

    • ComboItem

      public ComboItem(String text, String value)
      Create a new instance of combobox items.
      Parameters:
      text - Text to be displayed by JComboBox
      value - Value associated with this item.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      public String getValue()
      Get the value associated with this item.
      Returns:
      Associated value.