Interface ScrollAdjuster
-
- All Known Implementing Classes:
JSpinnerOperator.DateScrollAdjuster,JSpinnerOperator.ExactScrollAdjuster,JSpinnerOperator.ListScrollAdjuster,JSpinnerOperator.NumberScrollAdjuster,JSpinnerOperator.ObjectScrollAdjuster,JSpinnerOperator.ToStringScrollAdjuster
public interface ScrollAdjusterSpecifies scrolling criteria.- Author:
- Alexandre Iline(alexandre.iline@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description static intDECREASE_SCROLL_DIRECTIONDecrease scroll direction.static intDO_NOT_TOUCH_SCROLL_DIRECTIONSpecifies that necessary value has been reached..static intINCREASE_SCROLL_DIRECTIONIncrease scroll direction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns a printable scrolling description.intgetScrollDirection()Returns scroll direction to reach necessary scroller value.intgetScrollOrientation()Returns scrolling orientation.
-
-
-
Field Detail
-
INCREASE_SCROLL_DIRECTION
static final int INCREASE_SCROLL_DIRECTION
Increase scroll direction.- See Also:
- Constant Field Values
-
DECREASE_SCROLL_DIRECTION
static final int DECREASE_SCROLL_DIRECTION
Decrease scroll direction.- See Also:
- Constant Field Values
-
DO_NOT_TOUCH_SCROLL_DIRECTION
static final int DO_NOT_TOUCH_SCROLL_DIRECTION
Specifies that necessary value has been reached..- See Also:
- Constant Field Values
-
-
Method Detail
-
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
java.lang.String getDescription()
Returns a printable scrolling description.- Returns:
- a description.
-
-