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 TypeMethodDescriptionCreates aControl
for selecting the Look and Feel.enableOnSelection
(boolean enableOnSelection) owner
(JComponent owner) Displays a dialog allowing the user the select between all available Look and Feels.userPreferencePropertyName
(String userPreferencePropertyName)
-
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
-
userPreferencePropertyName
- Parameters:
userPreferencePropertyName
- the name of the property to use when saving the selected look and feel as a user preference- Returns:
- this builder
-
selectLookAndFeel
Optional<LookAndFeelProvider> selectLookAndFeel()Displays a dialog allowing the user the select between all available Look and Feels.- Returns:
- the selected look and feel provider, an empty Optional if cancelled
-
createControl
Control createControl()Creates aControl
for selecting the Look and Feel.- Returns:
- a Control for displaying a dialog for selecting a look and feel
-