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.
-
Method Summary
Modifier and TypeMethodDescriptioncreateControl
(Consumer<LookAndFeelProvider> selectedLookAndFeel) Creates aControl
for selecting the Look and Feel.enableOnSelection
(boolean enableOnSelection) owner
(JComponent owner) void
selectLookAndFeel
(Consumer<LookAndFeelProvider> selectedLookAndFeel) Displays a dialog allowing the user the select between all available Look and Feels.
-
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
-
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
-