Module is.codion.swing.common.ui
Interface SpinnerBuilder<T,B extends SpinnerBuilder<T,B>>
- All Superinterfaces:
ComponentBuilder<T,
JSpinner, B>
- All Known Subinterfaces:
ItemSpinnerBuilder<T>
,ListSpinnerBuilder<T>
,NumberSpinnerBuilder<T>
public interface SpinnerBuilder<T,B extends SpinnerBuilder<T,B>>
extends ComponentBuilder<T,JSpinner,B>
A builder for JSpinner.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptioncolumns
(int columns) editable
(boolean editable) horizontalAlignment
(int horizontalAlignment) mouseWheelScrolling
(boolean mouseWheelScrolling) Enable mouse wheel scrolling on the spinnermouseWheelScrollingReversed
(boolean mouseWheelScrollingReversed) Enable reversed mouse wheel scrolling on the spinnerMethods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusCycleRoot, 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
-
editable
- Parameters:
editable
- false if the spinner field should not be editable- Returns:
- this builder instance
-
columns
- Parameters:
columns
- the number of colums in the spinner text component- Returns:
- this builder instance
-
mouseWheelScrolling
Enable mouse wheel scrolling on the spinner- Parameters:
mouseWheelScrolling
- true if mouse wheel scrolling should be enabled- Returns:
- this builder instance
-
mouseWheelScrollingReversed
Enable reversed mouse wheel scrolling on the spinner- Parameters:
mouseWheelScrollingReversed
- if true then up/away decreases the value and down/towards increases it.- Returns:
- this builder instance
-
horizontalAlignment
- Parameters:
horizontalAlignment
- the horizontal text alignment- Returns:
- this builder instance
-