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.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
columns(int columns)
B
editable(boolean editable)
B
horizontalAlignment(int horizontalAlignment)
B
mouseWheelScrolling(boolean mouseWheelScrolling)
Enable mouse wheel scrolling on the spinnerB
mouseWheelScrollingReversed(boolean mouseWheelScrollingReversed)
Enable reversed mouse wheel scrolling on the spinner-
Methods inherited from interface is.codion.swing.common.ui.component.ComponentBuilder
background, border, build, build, buildComponentValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabledState, focusable, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, linkedValue, linkedValueObserver, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator
-
-
-
-
Method Detail
-
editable
B editable(boolean editable)
- Parameters:
editable
- false if the spinner field should not be editable- Returns:
- this builder instance
-
columns
B columns(int columns)
- Parameters:
columns
- the number of colums in the spinner text component- Returns:
- this builder instance
-
mouseWheelScrolling
B mouseWheelScrolling(boolean mouseWheelScrolling)
Enable mouse wheel scrolling on the spinner- Parameters:
mouseWheelScrolling
- true if mouse wheel scrolling should be enabled- Returns:
- this builder instance
-
mouseWheelScrollingReversed
B mouseWheelScrollingReversed(boolean 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
B horizontalAlignment(int horizontalAlignment)
- Parameters:
horizontalAlignment
- the horizontal text alignment- Returns:
- this builder instance
-
-