public static class JSpinnerOperator.ListScrollAdjuster extends Object implements ScrollAdjuster
ScrollAdjuster to be used for JSpinner
component having SpinnerListModel model.JSpinnerOperator.ListSpinnerOperatorDECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION| Constructor and Description |
|---|
ListScrollAdjuster(JSpinnerOperator oper,
int itemIndex)
Constructs a
ListScrollAdjuster object. |
ListScrollAdjuster(JSpinnerOperator oper,
Object value)
Constructs a
ListScrollAdjuster object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a printable scrolling description.
|
int |
getScrollDirection()
Returns scroll direction to reach necessary scroller value.
|
int |
getScrollOrientation()
Returns scrolling orientation.
|
public ListScrollAdjuster(JSpinnerOperator oper, Object value)
ListScrollAdjuster object.oper - an operator to work with.value - a value to scroll to.public ListScrollAdjuster(JSpinnerOperator oper, int itemIndex)
ListScrollAdjuster object.oper - an operator to work with.itemIndex - an item index to scroll to.public int getScrollDirection()
ScrollAdjustergetScrollDirection in interface ScrollAdjusterpublic int getScrollOrientation()
ScrollAdjustergetScrollOrientation in interface ScrollAdjusterpublic String getDescription()
ScrollAdjustergetDescription in interface ScrollAdjuster