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
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Boolean> Specifies whether to allow selecting an installed (platform) Look and Feel when auxiliary ones are available. -
Method Summary
Modifier and TypeMethodDescriptionallowInstalled(boolean allowInstalled) Creates aControlfor selecting the Look and Feel.createControl(Consumer<LookAndFeelEnabler> selectedLookAndFeel) Creates aControlfor selecting the Look and Feel.enableOnSelection(boolean enableOnSelection) owner(@Nullable JComponent owner) voidselectLookAndFeel(Consumer<LookAndFeelEnabler> selectedLookAndFeel) Displays a dialog allowing the user the select between all available Look and Feels.
-
Field Details
-
ALLOW_INSTALLED
Specifies whether to allow selecting an installed (platform) Look and Feel when auxiliary ones are available.- Value type: Boolean
- Default value: true
-
-
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
-
allowInstalled
- Parameters:
allowInstalled- true if selecting installed (platform) look and feels should be allowed if auxiliary ones are available- 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
Control createControl()Creates aControlfor selecting the Look and Feel.- Returns:
- a Control for displaying a dialog for selecting a look and feel
-
createControl
Creates aControlfor 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
-