Class JSpinnerOperator.ToStringScrollAdjuster

    • Constructor Detail

      • ToStringScrollAdjuster

        public ToStringScrollAdjuster​(JSpinnerOperator oper,
                                      String pattern,
                                      Operator.StringComparator comparator,
                                      int direction)
        Constructs a ToStringScrollAdjuster object.
        Parameters:
        oper - an operator to work with.
        pattern - a pattern to compare with
        comparator - specifies string comparision algorithm.
        direction - a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION fields.
      • ToStringScrollAdjuster

        public ToStringScrollAdjuster​(JSpinnerOperator oper,
                                      String pattern,
                                      int direction)
        Constructs a ToStringScrollAdjuster object. Uses StringComparator assigned to the operator.
        Parameters:
        oper - an operator to work with.
        pattern - a pattern to compare with
        direction - a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION fields.