Module is.codion.swing.common.ui
Interface SliderBuilder
- All Superinterfaces:
ComponentBuilder<Integer,
JSlider, SliderBuilder>
A builder for JSpinner
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionstatic SliderBuilder
builder
(BoundedRangeModel boundedRangeModel) static SliderBuilder
builder
(BoundedRangeModel boundedRangeModel, Value<Integer> linkedValue) 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, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, visible
-
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
-
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
- Parameters:
boundedRangeModel
- the slider model- Returns:
- a builder for a component
-
builder
- Parameters:
boundedRangeModel
- the slider modellinkedValue
- the value to link to the component- Returns:
- a builder for a component
-