Module is.codion.swing.common.ui
Interface ProgressBarBuilder
- All Superinterfaces:
ComponentBuilder<Integer,JProgressBar, ProgressBarBuilder>
public interface ProgressBarBuilder
extends ComponentBuilder<Integer,JProgressBar,ProgressBarBuilder>
Builds a JProgressBar.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER -
Method Summary
Modifier and TypeMethodDescriptionborderPainted(boolean borderPainted) build()Builds a new component instance.static ProgressBarBuilderbuilder()static ProgressBarBuilderbuilder(BoundedRangeModel boundedRangeModel) indeterminate(boolean indeterminate) orientation(int orientation) stringPainted(boolean stringPainted) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, buildValue, buildValue, clientProperty, componentListener, componentOrientation, consumer, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, link, link, listener, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, visible
-
Method Details
-
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<Integer,JProgressBar, ProgressBarBuilder> - Returns:
- a new JProgressBar
-
builder
- Returns:
- a new indeterminate
ProgressBarBuilderinstance
-
builder
- Parameters:
boundedRangeModel- the progress bar model- Returns:
- a new
ProgressBarBuilderinstance
-