Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface LookAndFeelSelectionDialogBuilder
public interface LookAndFeelSelectionDialogBuilder
Builds a dialog for selecting a look and feel.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<Boolean>
Specifies whether to include the platform look and feels in the selection combo box by default, if auxiliary ones are provided. -
Method Summary
Modifier and TypeMethodDescriptioncreateControl
(Consumer<LookAndFeelEnabler> selectedLookAndFeel) Creates aControl
for selecting the Look and Feel.enableOnSelection
(boolean enableOnSelection) includePlatformLookAndFeels
(boolean includePlatformLookAndFeels) owner
(JComponent owner) void
selectLookAndFeel
(Consumer<LookAndFeelEnabler> selectedLookAndFeel) Displays a dialog allowing the user the select between all available Look and Feels.
-
Field Details
-
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
- Parameters:
enableOnSelection
- true if the Look and Feel should be enabled dynamically when selecting- Returns:
- this builder
-
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
Displays a dialog allowing the user the select between all available Look and Feels.- Parameters:
selectedLookAndFeel
- called when the OK button is pressed
-
createControl
Creates aControl
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
-