Class SliderInputBuilder


public class SliderInputBuilder extends AbstractInputBuilder<SliderInputBuilder,BigDecimal>
Builder class for input type Slider InputType.SLIDER.
  • Constructor Details

  • Method Details

    • setFrom

      public SliderInputBuilder setFrom(BigDecimal from)
      Sets the lower bound of the slider range.
      Parameters:
      from - the lower bound of the slider range.
      Returns:
      self
      Since:
      10.1 Bee's Knees
    • setTo

      public SliderInputBuilder setTo(BigDecimal to)
      Sets the upper bound of the slider range.
      Parameters:
      to - the upper bound of the slider range.
      Returns:
      self
      Since:
      10.1 Bee's Knees
    • setStep

      public SliderInputBuilder setStep(BigDecimal step)
      Sets the slider step.
      Parameters:
      step - the slider step.
      Returns:
      self
      Since:
      10.1 Bee's Knees
    • setMinimumValue

      public SliderInputBuilder setMinimumValue(BigDecimal minValue)
      Sets the minimum value of the lower bound of the slider range.
      Parameters:
      minValue - the minimum value of the lower bound of the slider range.
      Returns:
      self
      Since:
      15.0 - Southside
    • setMaximumValue

      public SliderInputBuilder setMaximumValue(BigDecimal maxValue)
      Sets the maximum value of the upper bound of the slider range.
      Parameters:
      maxValue - the maximum value of the lower bound of the slider range.
      Returns:
      self
      Since:
      15.0 - Southside
    • setFormatType

      public SliderInputBuilder setFormatType(SliderInputBuilder.FormatType formatType)
      Sets the format type of the slider range.
      Parameters:
      formatType - format type as SliderInputBuilder.FormatType.NUMERIC or SliderInputBuilder.FormatType.PERCENT.
      Returns:
      self
      Since:
      15.0 - Southside
    • hideTrack

      public SliderInputBuilder hideTrack(boolean hideTrack)
      Shows or hide the slider track (colored bar from lower bound to the cursor materializing the selected value).
      Parameters:
      hideTrack - true to hide the track, false to display the track.
      Returns:
      self
      Since:
      10.1 Bee's Knees
    • setSubLabels

      public SliderInputBuilder setSubLabels(String left, String right)
      Sets the sub labels displayed respectively on the left and the right of the slider.
      Parameters:
      left - left sub label.
      right - right sub label.
      Returns:
      self
      Since:
      10.1 Bee's Knees
    • _getInput

      protected Object _getInput()
      Specified by:
      _getInput in class AbstractInputBuilder<SliderInputBuilder,BigDecimal>