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
Fields Modifier and Type Field Description static int
DECREASE_SCROLL_DIRECTION
Decrease scroll direction.static int
DO_NOT_TOUCH_SCROLL_DIRECTION
Specifies that necessary value has been reached..static int
INCREASE_SCROLL_DIRECTION
Increase scroll direction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns a printable scrolling description.int
getScrollDirection()
Returns scroll direction to reach necessary scroller value.int
getScrollOrientation()
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.
-
-