Class JSpinnerOperator.ListScrollAdjuster

    • Constructor Detail

      • ListScrollAdjuster

        public ListScrollAdjuster​(JSpinnerOperator oper,
                                  java.lang.Object value)
        Constructs a ListScrollAdjuster object.
        Parameters:
        oper - an operator to work with.
        value - a value to scroll to.
      • ListScrollAdjuster

        public ListScrollAdjuster​(JSpinnerOperator oper,
                                  int itemIndex)
        Constructs a ListScrollAdjuster object.
        Parameters:
        oper - an operator to work with.
        itemIndex - an item index to scroll to.
    • Method Detail

      • getScrollDirection

        public int getScrollDirection()
        Description copied from interface: ScrollAdjuster
        Returns scroll direction to reach necessary scroller value.
        Specified by:
        getScrollDirection in interface ScrollAdjuster
        Returns:
        one of the values: INCREASE_SCROLL_DIRECTION, DECREASE_SCROLL_DIRECTION or DO_NOT_TOUCH_SCROLL_DIRECTION.
      • getScrollOrientation

        public int getScrollOrientation()
        Description copied from interface: ScrollAdjuster
        Returns scrolling orientation.
        Specified by:
        getScrollOrientation in interface ScrollAdjuster
        Returns:
        one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: ScrollAdjuster
        Returns a printable scrolling description.
        Specified by:
        getDescription in interface ScrollAdjuster
        Returns:
        a description.