Class LookAndFeelComboBox

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

public final class LookAndFeelComboBox extends JComboBox<Item<LookAndFeelEnabler>>
A combo box for selecting a LookAndFeel. Instantiate via builder builder().
See Also:
  • Field Details

  • Method Details

    • getModel

      Overrides:
      getModel in class JComboBox<Item<LookAndFeelEnabler>>
    • platform

      public State platform()
      Returns:
      a State controlling whether the platform look and feels are included
    • light

      public State light()
      Returns:
      a State controlling whether light look and feels are included
    • dark

      public State dark()
      Returns:
      a State controlling whether dark look and feels are included
    • selectedLookAndFeel

      public LookAndFeelEnabler selectedLookAndFeel()
      Returns:
      the currently selected look and feel
    • enableSelected

      public void enableSelected()
      Enables the currently selected look and feel, if it is already enabled, this method does nothing
    • revert

      public void revert()
      Reverts the look and feel to the look and feel active when this look and feel combobox was created, if it is already enabled, this method does nothing
    • builder

      public static LookAndFeelComboBox.Builder builder()
      Instantiates a new LookAndFeelComboBox.Builder displaying the available look and feels
      Returns:
      a new LookAndFeelComboBox.Builder instance