Class Rangeslider

    • Field Detail

      • ON_RANGE_VALUE_CHANGE

        public static final java.lang.String ON_RANGE_VALUE_CHANGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Rangeslider

        public Rangeslider()
    • Method Detail

      • initSliderButtons

        protected void initSliderButtons()
      • getMin

        public int getMin()
        Returns the minimum value of the rangeslider.

        Default: 0.

      • setMin

        public void setMin​(int min)
        Sets the minimum value of the rangeslider.
        Throws:
        WrongValueException - if negative value is passed
      • getMax

        public int getMax()
        Returns the maximum value of the rangeslider.

        Default: 100.

      • setMax

        public void setMax​(int max)
        Sets the maximum value of the rangeslider.
        Throws:
        WrongValueException - if negative value is passed
      • getStep

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

        Default: 1

      • setStep

        public void setStep​(int step)
        Sets the step of rangeslider
        Parameters:
        step - the step of slider.
        Throws:
        WrongValueException - if non-positive minimum is passed
      • getStartValue

        public int getStartValue()
        Returns the start value of this rangeslider.

        Default: 0.

      • setStartValue

        public void setStartValue​(int value)
        Sets the start value of this sliderbuttons.
        Parameters:
        value -
      • getEndValue

        public int getEndValue()
        Returns the end value of this rangeslider.

        Default: 0.

      • setEndValue

        public void setEndValue​(int value)
        Sets the end value of this sliderbuttons.
        Parameters:
        value -
      • getMarkScale

        public int getMarkScale()
        Returns mark scale of the rangeslider. Refer to setMarkScale(int) for more details.
      • setMarkScale

        public void setMarkScale​(int markScale)
        Sets the mark scale for displaying value marks.

        Default: 20. 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
      • setMarks

        public void setMarks​(java.util.Map<java.lang.Integer,​java.lang.String> 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.

        Default: null.

        Parameters:
        marks - the value marks displaying information
      • isDisabled

        public boolean isDisabled()
        Returns whether it is disabled.

        Default: false.

        Specified by:
        isDisabled in interface Disable
      • setDisabled

        public void setDisabled​(boolean disabled)
        Sets whether it is disabled.
        Specified by:
        setDisabled in interface Disable
        Parameters:
        disabled -
      • getOrient

        public java.lang.String getOrient()
        Returns the orient.

        Default: "horizontal".

      • setOrient

        public void setOrient​(java.lang.String orient)
                       throws WrongValueException

        Default : "horizontal"

        Parameters:
        orient - either "horizontal" or "vertical".
        Throws:
        WrongValueException
      • setTooltipVisible

        public void setTooltipVisible​(boolean tooltipVisible)
        Sets whether it is tooltipVisible. If true, the tooltips of the slider buttons would be always visible.
        Parameters:
        tooltipVisible -
      • isTooltipVisible

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

        Default: false.

      • handleOtherButtonsValues

        protected void handleOtherButtonsValues​(Sliderbuttons child)