Module is.codion.swing.common.ui
Interface SliderBuilder
- All Superinterfaces:
ComponentBuilder<Integer,
JSlider, SliderBuilder>
A builder for JSpinner
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue
<Boolean> Specifies whether mouse wheel scrolling in sliders is enabled by default.Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionstatic SliderBuilder.ModelBuilder
builder()
inverted
(boolean inverted) majorTickSpacing
(int majorTickSpacing) minorTickSpacing
(int minorTickSpacing) mouseWheelScrolling
(boolean mouseWheelScrolling) Enable mouse wheel scrolling on the slidermouseWheelScrollingReversed
(boolean mouseWheelScrollingReversed) Enable reversed mouse wheel scrolling on the sliderorientation
(int orientation) paintLabels
(boolean paintLabels) paintTicks
(boolean paintTicks) paintTrack
(boolean paintTrack) snapToTicks
(boolean snapToTicks) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, 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, modifiedIndicator, modifiedIndicatorFactory, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, validator, validIndicator, validIndicator, validIndicatorFactory, value, visible
-
Field Details
-
MOUSE_WHEEL_SCROLLING
Specifies whether mouse wheel scrolling in sliders is enabled by default.- Value type:Boolean
- Default value: true
-
-
Method Details
-
minorTickSpacing
- Parameters:
minorTickSpacing
- the minor tick spacing- Returns:
- this builder instance
- See Also:
-
majorTickSpacing
- Parameters:
majorTickSpacing
- the major tick spacing- Returns:
- this builder instance
- See Also:
-
snapToTicks
- Parameters:
snapToTicks
- snap to ticks- Returns:
- this builder instance
- See Also:
-
paintTicks
- Parameters:
paintTicks
- paint ticks- Returns:
- this builder instance
- See Also:
-
paintTrack
- Parameters:
paintTrack
- paint track- Returns:
- this builder instance
- See Also:
-
paintLabels
- Parameters:
paintLabels
- paint labels- Returns:
- this builder instance
- See Also:
-
inverted
- Parameters:
inverted
- should the track be inverted- Returns:
- this builder instance
- See Also:
-
orientation
- Parameters:
orientation
- the orientation, SwingConstants.HORIZONTAL or SwingConstants.VERTICAL- Returns:
- this builder instance
- See Also:
-
mouseWheelScrolling
Enable mouse wheel scrolling on the slider- Parameters:
mouseWheelScrolling
- true if mouse wheel scrolling should be enabled- Returns:
- this builder instance
- See Also:
-
mouseWheelScrollingReversed
Enable reversed mouse wheel scrolling on the slider- Parameters:
mouseWheelScrollingReversed
- if true then up/away decreases the value and down/towards increases it.- Returns:
- this builder instance
-
builder
- Returns:
- a builder for a component
-