Class ComboItem


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

      Constructors 
      Constructor Description
      ComboItem​(java.lang.String text, java.lang.String value)
      Create a new instance of combobox items.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()
      Get the value associated with this item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ComboItem

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

      • toString

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

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