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
positionAdds a button based on the given control to theBorderLayout.SOUTH
positioneastComponent
(@Nullable JComponent eastComponent) indeterminate
(boolean indeterminate) maximum
(int maximum) Note that calling this method renders the progress bar determinatenorthComponent
(@Nullable JComponent northComponent) progressBarSize
(@Nullable Dimension progressBarSize) stringPainted
(boolean stringPainted) westComponent
(@Nullable JComponent westComponent) 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
-
northComponent
- Parameters:
northComponent
- if specified this component is added to theBorderLayout.NORTH
position- Returns:
- this ProgressDialogBuilder instance
-
westComponent
- Parameters:
westComponent
- if specified this component is added to theBorderLayout.WEST
position- Returns:
- this ProgressDialogBuilder instance
-
eastComponent
- Parameters:
eastComponent
- if specified this component is added to theBorderLayout.EAST
position- 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
-
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
-