Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface ScalingSelectionDialogBuilder
public interface ScalingSelectionDialogBuilder
Builds a dialog for selecting the scaling.
-
Method Summary
Modifier and TypeMethodDescriptioncreateControl
(Consumer<Integer> scalingSelected) Creates aControl
for selecting the scaling.initialSelection
(int initialSelection) owner
(JComponent owner) void
selectScaling
(Consumer<Integer> scalingSelected) Displays a dialog allowing the user the select a scaling 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
-
selectScaling
Displays a dialog allowing the user the select a scaling multiplier.- Parameters:
scalingSelected
- called when the OK button is pressed
-
createControl
Creates aControl
for selecting the scaling.- Parameters:
scalingSelected
- called when the OK button is pressed- Returns:
- a Control for displaying a dialog for selecting a scaling
-