Package io.jmix.ui.component
Interface Slider<V extends Number>
- All Superinterfaces:
Component,Component.BelongToFrame,Component.Editable,Component.HasCaption,Component.HasDescription,Component.HasIcon,Field<V>,HasContextHelp,HasDatatype<V>,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,HasOrientation,HasValidator<V>,HasValue<V>,HasValueSource<V>,Requirable,Validatable
- All Known Implementing Classes:
SliderImpl
@StudioComponent(caption="Slider",
category="Components",
xmlElement="slider",
canvasBehaviour=SLIDER,
icon="io/jmix/ui/icon/component/slider.svg",
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/slider.html")
public interface Slider<V extends Number>
extends Field<V>, HasDatatype<V>, HasOrientation
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasOrientation
HasOrientation.OrientationNested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V> -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptiongetMax()getMin()intbooleanvoidSets the maximum value of the slider.voidSets the minimum value of the slider.voidsetResolution(int resolution) Sets the number of digits after the decimal point.voidsetUpdateValueOnClick(boolean updateValueOnClick) Sets the slider to update its value when the user clicks on it.Methods inherited from interface io.jmix.ui.component.Component
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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasDatatype
getDatatype, setDatatypeMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasOrientation
getOrientation, setOrientationMethods inherited from interface io.jmix.ui.component.HasValidator
addValidator, addValidators, getValidators, removeValidatorMethods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSourceMethods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessageMethods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
setMin
Sets the minimum value of the slider.- Parameters:
min- the minimum value of the slider
-
getMin
V getMin()- Returns:
- the minimum value of the slider
-
setMax
Sets the maximum value of the slider.- Parameters:
max- the maximum value of the slider
-
getMax
V getMax()- Returns:
- the maximum value of the slider
-
setResolution
Sets the number of digits after the decimal point.- Parameters:
resolution- the number of digits after the decimal point
-
getResolution
int getResolution()- Returns:
- resolution the number of digits after the decimal point
-
setUpdateValueOnClick
Sets the slider to update its value when the user clicks on it.By default this behavior is disabled.
- Parameters:
updateValueOnClick-trueto update the value of the slider on click
-
isUpdateValueOnCLick
boolean isUpdateValueOnCLick()- Returns:
trueif the slider updates its value on click
-