Interface ScrollAdjuster

All Known Implementing Classes:
JSpinnerOperator.DateScrollAdjuster, JSpinnerOperator.ExactScrollAdjuster, JSpinnerOperator.ListScrollAdjuster, JSpinnerOperator.NumberScrollAdjuster, JSpinnerOperator.ObjectScrollAdjuster, JSpinnerOperator.ToStringScrollAdjuster

public interface ScrollAdjuster
Specifies scrolling criteria.
Author:
Alexandre Iline(alexandre.iline@sun.com)
  • Field Details

    • INCREASE_SCROLL_DIRECTION

      static final int INCREASE_SCROLL_DIRECTION
      Increase scroll direction.
      See Also:
    • DECREASE_SCROLL_DIRECTION

      static final int DECREASE_SCROLL_DIRECTION
      Decrease scroll direction.
      See Also:
    • DO_NOT_TOUCH_SCROLL_DIRECTION

      static final int DO_NOT_TOUCH_SCROLL_DIRECTION
      Specifies that necessary value has been reached..
      See Also:
  • Method Details

    • getScrollDirection

      int getScrollDirection()
      Returns scroll direction to reach necessary scroller value.
      Returns:
      one of the values: INCREASE_SCROLL_DIRECTION, DECREASE_SCROLL_DIRECTION or DO_NOT_TOUCH_SCROLL_DIRECTION.
    • getScrollOrientation

      int getScrollOrientation()
      Returns scrolling orientation.
      Returns:
      one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
    • getDescription

      String getDescription()
      Returns a printable scrolling description.
      Returns:
      a description.