Class ComboItem


  • public class ComboItem
    extends java.lang.Object
    Data class for representing combo box entries
    • Constructor Summary

      Constructors 
      Constructor Description
      ComboItem​(java.lang.String label, java.lang.String value)
      Create instance with the provided label and value
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()
      Gets the label associate to this instance
      java.lang.String getValue()
      Gets the value associated to this instance
      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 label,
                         java.lang.String value)
        Create instance with the provided label and value
        Parameters:
        label - The label to associated
        value - The value to associate
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Gets the value associated to this instance
        Returns:
        The associated value
      • getLabel

        public java.lang.String getLabel()
        Gets the label associate to this instance
        Returns:
        The associated label
      • toString

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