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