@StudioComponent(caption="Slider", category="Components", xmlElement="slider", canvasBehaviour=SLIDER, icon="io/jmix/ui/icon/component/slider.svg", documentationURL="https://docs.jmix.io/jmix/%VERSION%/backoffice-ui/vcl/components/slider.html") public interface Slider<V extends java.lang.Number> extends Field<V>, HasDatatype<V>, HasOrientation
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
HasOrientation.Orientation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
V |
getMax() |
V |
getMin() |
int |
getResolution() |
boolean |
isUpdateValueOnCLick() |
void |
setMax(V max)
Sets the maximum value of the slider.
|
void |
setMin(V min)
Sets the minimum value of the slider.
|
void |
setResolution(int resolution)
Sets the number of digits after the decimal point.
|
void |
setUpdateValueOnClick(boolean updateValueOnClick)
Sets the slider to update its value when the user clicks on it.
|
getValueSource, setValueSource
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addValidator, addValidators, getValidators, removeValidator
getRequiredMessage, isRequired, setRequired, setRequiredMessage
getDatatype, setDatatype
getOrientation, setOrientation
static final java.lang.String NAME
@StudioProperty(type=DOUBLE, defaultValue="0") void setMin(V min)
min
- the minimum value of the sliderV getMin()
@StudioProperty(type=DOUBLE, defaultValue="100") void setMax(V max)
max
- the maximum value of the sliderV getMax()
@StudioProperty(defaultValue="0") void setResolution(int resolution)
resolution
- the number of digits after the decimal pointint getResolution()
@StudioProperty(defaultValue="false") void setUpdateValueOnClick(boolean updateValueOnClick)
By default this behavior is disabled.
updateValueOnClick
- true
to update the value of the slider on clickboolean isUpdateValueOnCLick()
true
if the slider updates its value on click