Module is.codion.swing.common.ui
Interface ProgressBarBuilder
- All Superinterfaces:
ComponentBuilder<JProgressBar,,ProgressBarBuilder> ComponentValueBuilder<JProgressBar,,Integer, ProgressBarBuilder> Supplier<JProgressBar>
public interface ProgressBarBuilder
extends ComponentValueBuilder<JProgressBar,Integer,ProgressBarBuilder>
Builds a JProgressBar.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionborderPainted(boolean borderPainted) build()Builds a new component instance.static ProgressBarBuilderbuilder()indeterminate(boolean indeterminate) model(BoundedRangeModel model) Note: setting the model also setsindeterminate(boolean)to falseorientation(int orientation) stringPainted(boolean stringPainted) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, keyEvent, keyListener, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visibleMethods inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
buildValue, buildValue, consumer, link, link, listener, modifiedIndicator, modifiedIndicatorFactory, onBuildValue, validator, validIndicator, validIndicator, validIndicatorFactory, value
-
Method Details
-
model
Note: setting the model also setsindeterminate(boolean)to false- Parameters:
model- the model- Returns:
- this builder
- See Also:
-
string
- Parameters:
string- a string to paint- Returns:
- this builder
- See Also:
-
borderPainted
- Parameters:
borderPainted- true if a border should be painted- Returns:
- this builder
- See Also:
-
stringPainted
- Parameters:
stringPainted- true if a progress string should be painted- Returns:
- this builder
- See Also:
-
orientation
- Parameters:
orientation- the orientiation- Returns:
- this builder
- See Also:
-
indeterminate
- Parameters:
indeterminate- true if the progress bar should be inditerminate- Returns:
- this builder
- See Also:
-
build
JProgressBar build()Description copied from interface:ComponentBuilderBuilds a new component instance.- Specified by:
buildin interfaceComponentBuilder<JProgressBar,ProgressBarBuilder> - Returns:
- a new JProgressBar
-
builder
- Returns:
- a new indeterminate
ProgressBarBuilderinstance
-