Interface LookAndFeelSelectionDialogBuilder


public interface LookAndFeelSelectionDialogBuilder
Builds a dialog for selecting a look and feel.
  • Field Details

    • INCLUDE_PLATFORM_LOOK_AND_FEELS

      static final PropertyValue<Boolean> INCLUDE_PLATFORM_LOOK_AND_FEELS

      Specifies whether to include the platform look and feels in the selection combo box by default, if auxiliary ones are provided.

      Note that this has no effect if only the platform look and feels are provided.

      • Value type: Boolean
      • Default value: false
      See Also:
  • Method Details

    • owner

      Parameters:
      owner - the dialog owner
      Returns:
      this builder
    • enableOnSelection

      LookAndFeelSelectionDialogBuilder enableOnSelection(boolean enableOnSelection)
      Parameters:
      enableOnSelection - true if the Look and Feel should be enabled dynamically when selecting
      Returns:
      this builder
    • includePlatformLookAndFeels

      LookAndFeelSelectionDialogBuilder includePlatformLookAndFeels(boolean includePlatformLookAndFeels)
      Parameters:
      includePlatformLookAndFeels - true if the platform look and feels should be included by default in the selection combo box
      Returns:
      this builder
      See Also:
    • selectLookAndFeel

      void selectLookAndFeel(Consumer<LookAndFeelEnabler> selectedLookAndFeel)
      Displays a dialog allowing the user the select between all available Look and Feels.
      Parameters:
      selectedLookAndFeel - called when the OK button is pressed
    • createControl

      Control createControl(Consumer<LookAndFeelEnabler> selectedLookAndFeel)
      Creates a Control for selecting the Look and Feel.
      Parameters:
      selectedLookAndFeel - called when the OK button is pressed
      Returns:
      a Control for displaying a dialog for selecting a look and feel