Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface ProgressDialog.Builder
- All Superinterfaces:
DialogBuilder<ProgressDialog.Builder>
- Enclosing class:
ProgressDialog
A builder for
ProgressDialog
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Adds a button based on the given control to theBorderLayout.SOUTH
positioncontrol
(Control.Builder<?, ?> controlBuilder) Adds a button based on the given control to theBorderLayout.SOUTH
positionindeterminate
(boolean indeterminate) maximum
(int maximum) Note that calling this method renders the progress bar determinatenorthPanel
(@Nullable JPanel northPanel) progressBarSize
(@Nullable Dimension progressBarSize) stringPainted
(boolean stringPainted) Methods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, onBuild, owner, owner, title, title
-
Method Details
-
indeterminate
- Parameters:
indeterminate
- the indeterminate status of the progress bar- Returns:
- this ProgressDialogBuilder instance
-
maximum
Note that calling this method renders the progress bar determinate- Parameters:
maximum
- the maximum progress, 100 by default- Returns:
- this ProgressDialogBuilder instance
- See Also:
-
stringPainted
- Parameters:
stringPainted
- the string painted status of the progress bar- Returns:
- this ProgressDialogBuilder instance
-
northPanel
- Parameters:
northPanel
- if specified this panel is added to theBorderLayout.NORTH
position- Returns:
- this ProgressDialogBuilder instance
-
westPanel
- Parameters:
westPanel
- if specified this panel is added to theBorderLayout.WEST
position- Returns:
- this ProgressDialogBuilder instance
-
eastPanel
- Parameters:
eastPanel
- if specified this panel is added to theBorderLayout.EAST
position- Returns:
- this ProgressDialogBuilder instance
-
control
Adds a button based on the given control to theBorderLayout.SOUTH
position- Parameters:
controlBuilder
- the builder for the control to add- Returns:
- this ProgressDialogBuilder instance
-
control
Adds a button based on the given control to theBorderLayout.SOUTH
position- Parameters:
control
- the control to add- Returns:
- this ProgressDialogBuilder instance
-
progressBarSize
- Parameters:
progressBarSize
- the progress bar size- Returns:
- this ProgressDialogBuilder instance
-
border
- Parameters:
border
- the border to add around the progress bar- Returns:
- this ProgressDialogBuilder instance
-
build
ProgressDialog build()- Returns:
- a new ProgressDialog
-