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 ProgressBarBuilder
builder()
static ProgressBarBuilder
builder
(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, 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, value, 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:ComponentBuilder
Builds a new component instance.- Specified by:
build
in interfaceComponentBuilder<Integer,
JProgressBar, ProgressBarBuilder> - Returns:
- a new JProgressBar
-
builder
- Returns:
- a new indeterminate
ProgressBarBuilder
instance
-
builder
- Parameters:
boundedRangeModel
- the progress bar model- Returns:
- a new
ProgressBarBuilder
instance
-