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
  • Field Details

  • Method Details

    • setMin

      @StudioProperty(type=DOUBLE, defaultValue="0") void setMin(V min)
      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

      @StudioProperty(type=DOUBLE, defaultValue="100") void setMax(V max)
      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

      @StudioProperty(defaultValue="0") void setResolution(int resolution)
      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

      @StudioProperty(defaultValue="false") void setUpdateValueOnClick(boolean updateValueOnClick)
      Sets the slider to update its value when the user clicks on it.

      By default this behavior is disabled.

      Parameters:
      updateValueOnClick - true to update the value of the slider on click
    • isUpdateValueOnCLick

      boolean isUpdateValueOnCLick()
      Returns:
      true if the slider updates its value on click