Interface IRangesliderBase<I extends IRangesliderBase>

All Superinterfaces:
IAnyGroup<I>, IComponent<I>, IDisable<I>, IHtmlBasedComponent<I>, ISingleChildable<I,ISliderbuttons>, IXulElement<I>
All Known Subinterfaces:
IMultislider, IRangeslider

public interface IRangesliderBase<I extends IRangesliderBase> extends IXulElement<I>, IDisable<I>, IAnyGroup<I>, ISingleChildable<I,ISliderbuttons>
Immutable Rangeslider base component
Author:
katherine
See Also:
  • Rangeslider
  • Method Details

    • getMarks

      @Nullable Map<Integer,String> getMarks()
      Returns the marks information map of the component. Refer to withMarks(java.util.Map<java.lang.Integer, ? extends java.lang.String>) for more details.
    • withMarks

      I withMarks(Map<Integer,? extends String> marks)
      Returns a copy of this immutable component with the specified marks.

      Sets the marks information map for displaying value marks. In this map, the key represents the number value of slider, and the value represents the displayed scale text.

      Parameters:
      marks - The value marks displaying information

      Default: null.

      Returns:
      A modified copy of the this object
    • getMin

      default int getMin()
      Returns the minimum value of the component.

      Default: 0.

    • withMin

      I withMin(int min)
      Returns a copy of this immutable component with the specified min.

      Sets the minimum value of the component.

      Parameters:
      min - The minimum value of the component.

      Default: 0.

      Returns:
      A modified copy of the this object
    • getMax

      default int getMax()
      Returns the maximum value of the component.

      Default: 100.

    • withMax

      I withMax(int max)
      Returns a copy of this immutable component with the specified max.

      Sets the maximum value of the component.

      Parameters:
      max - The maximum value of the component.

      Default: 100.

      Returns:
      A modified copy of the this object
    • getStep

      default int getStep()
      Returns the step of the component. When the user drags the slider buttons, the buttons would increase/decrease value by the step count.

      Default: 1

    • withStep

      I withStep(int step)
      Returns a copy of this immutable component with the specified step.

      Sets the step of component

      Parameters:
      step - The step of the slider.

      Default: 1.

      Returns:
      A modified copy of the this object
    • getOrient

      default String getOrient()
      Returns the orient.

      Default: "horizontal".

    • withOrient

      I withOrient(String orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient of component

      Parameters:
      orient - Either "horizontal" or "vertical"

      Default: "horizontal".

      Returns:
      A modified copy of the this object
    • withOrient

      default I withOrient(IRangesliderBase.Orient orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient of component

      Parameters:
      orient - The orient

      Default: "horizontal".

      Returns:
      A modified copy of the this object
    • isTooltipVisible

      default boolean isTooltipVisible()
      Returns whether it is tooltip visible. If true, the tooltips of the slider buttons would be always visible.

      Default: false.

    • withTooltipVisible

      I withTooltipVisible(boolean tooltipVisible)
      Returns a copy of this immutable component with the specified tooltipVisible.

      Sets whether it is tooltip visible.

      Parameters:
      tooltipVisible - Whether it is tooltip visible.

      Default: false.

      Returns:
      A modified copy of the this object
    • getMarkScale

      default int getMarkScale()
      Returns mark scale of the component. Refer to withMarkScale(int) for more details.

      Default: 20

    • withMarkScale

      I withMarkScale(int markScale)
      Returns a copy of this immutable component with the specified markScale.

      Sets the mark scale for displaying value marks.

      The value marks would be displayed every number value (ex. 20) start from the minimum value. (if min is 0, then display "0 20 40 ...")

      Notice that it's not allowed to use markScale and marks at the same time.

      Parameters:
      markScale - The value marks displaying scale

      Default: 20.

      Returns:
      A modified copy of the this object