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
TRANSFER_FOCUS_ON_ENTER -
Method Summary
Modifier and TypeMethodDescriptionborderPainted(boolean borderPainted) build()Builds and returns the component, note that subsequent calls return the same component untilComponentBuilder.clear()has been called.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, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, linkedValue, linkedValue, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, 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 and returns the component, note that subsequent calls return the same component untilComponentBuilder.clear()has been called.- 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
-