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

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
Gui

public class Gui.Field_enumSet<E extends Enum<E>> extends JPanel
Widget for an input field of a selection of enumeration values.
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
    • descrKey

      final String descrKey
      Cache for the formatted key to the enumeration's descriptions.
  • Constructor Details

    • Field_enumSet

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

    • getToolTipText

      public String getToolTipText(MouseEvent ev)
      Borders are no components and do not have tooltips, so define it for the whole area:
      Overrides:
      getToolTipText in class JComponent
    • get_value

      public EnumSet<E> get_value()
      Return the value according to the current selection of the Swing buttons
    • set_value

      public void set_value(EnumSet<E> value)
      Set the value and the current stats of the Swing buttons