public static class JSpinnerOperator.ToStringScrollAdjuster extends JSpinnerOperator.ObjectScrollAdjuster
DECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION
Constructor and Description |
---|
ToStringScrollAdjuster(JSpinnerOperator oper,
String pattern,
int direction)
Constructs a
ToStringScrollAdjuster object. |
ToStringScrollAdjuster(JSpinnerOperator oper,
String pattern,
Operator.StringComparator comparator,
int direction)
Constructs a
ToStringScrollAdjuster object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object curvalue) |
String |
getDescription()
Returns a printable scrolling description.
|
int |
getScrollOrientation()
Returns scrolling orientation.
|
getScrollDirection
public ToStringScrollAdjuster(JSpinnerOperator oper, String pattern, Operator.StringComparator comparator, int direction)
ToStringScrollAdjuster
object.oper
- an operator to work with.pattern
- a pattern to compare withcomparator
- specifies string comparision algorithm.direction
- a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION
fields.public ToStringScrollAdjuster(JSpinnerOperator oper, String pattern, int direction)
ToStringScrollAdjuster
object.
Uses StringComparator
assigned to the operator.oper
- an operator to work with.pattern
- a pattern to compare withdirection
- a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION
fields.public boolean equals(Object curvalue)
equals
in class JSpinnerOperator.ObjectScrollAdjuster
public String getDescription()
ScrollAdjuster
public int getScrollOrientation()
ScrollAdjuster
getScrollOrientation
in interface ScrollAdjuster
getScrollOrientation
in class JSpinnerOperator.ObjectScrollAdjuster