Class Gui.Field_enum<E extends Enum<E>>

All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener
Enclosing class:
Gui

public class Gui.Field_enum<E extends Enum<E>> extends JComboBox<String>
Widget for the input of one enumeration argument.
See Also:
  • Field Details

    • cl

      final Class<E extends Enum<E>> cl
      Java class of the enumeration type
    • constants

      final E extends Enum<E>[] constants
      Cache for the enumeration values
  • Constructor Details

    • Field_enum

      public Field_enum(Class<E> cl)
      Evident
  • Method Details

    • get_value

      public E get_value()
      Return the value according to the current selection of the Swing JComboBox
    • set_value

      public void set_value(E value)
      Set the value and the current selection of the Swing JComboBox
    • getToolTipText

      public String getToolTipText(MouseEvent ev)
      Works for the field itself and for the lines of the pop-up selection menu.
      Overrides:
      getToolTipText in class JComponent