Class ComboboxGUIVariable.ComboItem

  • Enclosing class:
    ComboboxGUIVariable

    static class ComboboxGUIVariable.ComboItem
    extends java.lang.Object
    Elements of this combo box. These elements are 2-tuples:
    • label (string representation of possible values) for the combo box
    • values as needed by the set value method.
    Author:
    El-Sharkawy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String label  
      private java.lang.Object value  
    • Constructor Summary

      Constructors 
      Constructor Description
      ComboItem​(java.lang.String label, java.lang.Object value)
      Sole constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getLabel()
      Returns the label for this class.
      (package private) java.lang.Object getValue()
      Returns the object as needed by the setValue method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • label

        private java.lang.String label
      • value

        private java.lang.Object value
    • Constructor Detail

      • ComboItem

        ComboItem​(java.lang.String label,
                  java.lang.Object value)
        Sole constructor for this class.
        Parameters:
        label - String representation of the possible value.
        value - The value for setting the value.
    • Method Detail

      • getLabel

        java.lang.String getLabel()
        Returns the label for this class.
        Returns:
        The label
      • getValue

        java.lang.Object getValue()
        Returns the object as needed by the setValue method.
        Returns:
        Object for setting the value.