Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface FontSizeSelectionDialogBuilder
public interface FontSizeSelectionDialogBuilder
Builds a dialog for selecting the font size.
-
Method Summary
Modifier and TypeMethodDescriptioncreateControl
(Consumer<Integer> selectedFontSize) Creates aControl
for selecting the font size.initialSelection
(int initialSelection) owner
(JComponent owner) void
selectFontSize
(Consumer<Integer> selectedFontSize) Displays a dialog allowing the user the select a font size multiplier.
-
Method Details
-
owner
- Parameters:
owner
- the dialog owner- Returns:
- this builder
-
initialSelection
- Parameters:
initialSelection
- the initally selected font size ratio, default 100%- Returns:
- this builder
-
selectFontSize
Displays a dialog allowing the user the select a font size multiplier.- Parameters:
selectedFontSize
- called when the OK button is pressed
-
createControl
Creates aControl
for selecting the font size.- Parameters:
selectedFontSize
- called when the OK button is pressed- Returns:
- a Control for displaying a dialog for selecting a font size
-