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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Decrease scroll direction.static final int
Specifies that necessary value has been reached..static final int
Increase scroll direction. -
Method Summary
Modifier and TypeMethodDescriptionReturns a printable scrolling description.int
Returns scroll direction to reach necessary scroller value.int
Returns scrolling orientation.
-
Field Details
-
INCREASE_SCROLL_DIRECTION
static final int INCREASE_SCROLL_DIRECTIONIncrease scroll direction.- See Also:
-
DECREASE_SCROLL_DIRECTION
static final int DECREASE_SCROLL_DIRECTIONDecrease scroll direction.- See Also:
-
DO_NOT_TOUCH_SCROLL_DIRECTION
static final int DO_NOT_TOUCH_SCROLL_DIRECTIONSpecifies 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.
-