Package io.jmix.ui.component.impl
Class SliderImpl<V extends Number>
java.lang.Object
- All Implemented Interfaces:
- AttachNotifier,- Component,- Component.BelongToFrame,- Component.Editable,- Component.HasCaption,- Component.HasDescription,- Component.HasIcon,- Component.HasXmlDescriptor,- Component.Wrapper,- HasValueSource<V>,- Field<V>,- HasContextHelp,- HasDatatype<V>,- HasDebugId,- HasHtmlCaption,- HasHtmlDescription,- HasHtmlSanitizer,- HasOrientation,- HasValidator<V>,- HasValue<V>,- Requirable,- Slider<V>,- Validatable
public class SliderImpl<V extends Number>
extends AbstractField<JmixSlider<V>,V,V>
implements Slider<V>  
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.jmix.ui.component.ComponentComponent.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.HasContextHelpHasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasOrientationHasOrientation.OrientationNested classes/interfaces inherited from interface io.jmix.ui.component.HasValueHasValue.ValueChangeEvent<V>
- 
Field SummaryFieldsFields inherited from class io.jmix.ui.component.impl.AbstractFieldeditable, parentEditableChangeListener, validators, VALIDATORS_LIST_INITIAL_CAPACITYFields inherited from class io.jmix.ui.component.impl.AbstractValueComponentinternalValue, uiTestIdsSupport, valueBindingFields inherited from class io.jmix.ui.component.impl.AbstractComponentalignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.ComponentAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidattachValueChangeListener(JmixSlider<V> component) protected voidcomponentValueChanged(Double prevComponentValue, Double newComponentValue, boolean isUserOriginated) protected VconvertFromDouble(Double componentValue) protected DoubleconvertToDouble(V value) protected JmixSlider<V>getMax()getMin()intbooleanvoidsetDataAwareComponentsTools(DataAwareComponentsTools dataAwareComponentsTools) voidsetDatatype(Datatype<V> datatype) Sets the givendatatypeto the component.voidSets the maximum value of the slider.voidSets the minimum value of the slider.voidsetOrientation(HasOrientation.Orientation orientation) 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 class io.jmix.ui.component.impl.AbstractFieldaddValidator, getDatatypeConversionErrorMsg, getDefaultRequiredMessage, getErrorMessage, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeValidator, setEditable, setEditableToComponent, setParent, setRequired, setRequiredMessage, setupComponentErrorProvider, triggerValidators, validateMethods inherited from class io.jmix.ui.component.impl.AbstractValueComponentaddValueChangeListener, commit, componentValueChanged, convertToModel, convertToPresentation, discard, fieldValueEquals, getValue, getValueSource, isBuffered, isModified, setBuffered, setUiTestId, setUiTestIdsSupport, setValue, setValueSource, setValueToPresentation, valueBindingActivated, valueBindingConnectedMethods inherited from class io.jmix.ui.component.impl.AbstractComponentaddAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.ComponentaddStyleName, 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.BelongToFramegetFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.EditableisEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.HasCaptiongetCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescriptiongetDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcongetIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelpgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaptionisCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescriptionisDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizerisHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasValidatoraddValidator, addValidators, getValidators, removeValidatorMethods inherited from interface io.jmix.ui.component.HasValueaddValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSourcegetValueSource, setValueSourceMethods inherited from interface io.jmix.ui.component.RequirablegetRequiredMessage, isRequired, setRequired, setRequiredMessageMethods inherited from interface io.jmix.ui.component.ValidatableisValid, isValidateOnCommit, validate
- 
Field Details- 
datatype
- 
dataAwareComponentsTools
 
- 
- 
Constructor Details- 
SliderImplpublic SliderImpl()
 
- 
- 
Method Details- 
createComponent
- 
setDataAwareComponentsTools@Autowired public void setDataAwareComponentsTools(DataAwareComponentsTools dataAwareComponentsTools) 
- 
setMinDescription copied from interface:SliderSets the minimum value of the slider.
- 
getMin
- 
setMaxDescription copied from interface:SliderSets the maximum value of the slider.
- 
getMax
- 
setResolutionpublic void setResolution(int resolution) Description copied from interface:SliderSets the number of digits after the decimal point.- Specified by:
- setResolutionin interface- Slider<V extends Number>
- Parameters:
- resolution- the number of digits after the decimal point
 
- 
getResolutionpublic int getResolution()- Specified by:
- getResolutionin interface- Slider<V extends Number>
- Returns:
- resolution the number of digits after the decimal point
 
- 
setUpdateValueOnClickpublic void setUpdateValueOnClick(boolean updateValueOnClick) Description copied from interface:SliderSets the slider to update its value when the user clicks on it.By default this behavior is disabled. - Specified by:
- setUpdateValueOnClickin interface- Slider<V extends Number>
- Parameters:
- updateValueOnClick-- trueto update the value of the slider on click
 
- 
isUpdateValueOnCLickpublic boolean isUpdateValueOnCLick()- Specified by:
- isUpdateValueOnCLickin interface- Slider<V extends Number>
- Returns:
- trueif the slider updates its value on click
 
- 
getOrientation- Specified by:
- getOrientationin interface- HasOrientation
 
- 
setOrientation- Specified by:
- setOrientationin interface- HasOrientation
 
- 
getDatatype- Specified by:
- getDatatypein interface- HasDatatype<V extends Number>
- Returns:
- a datatype that is used by this component
 
- 
setDatatypeDescription copied from interface:HasDatatypeSets the givendatatypeto the component. Its value will be formatted according to this datatype.- Specified by:
- setDatatypein interface- HasDatatype<V extends Number>
- Parameters:
- datatype-- Datatypeinstance
 
- 
loadDatatype
- 
attachValueChangeListener- Overrides:
- attachValueChangeListenerin class- AbstractField<JmixSlider<V extends Number>,- V extends Number, - V extends Number> 
 
- 
componentValueChanged
- 
convertFromDouble- Throws:
- ConversionException
 
- 
convertToDouble
 
-