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,
java.lang.String pattern,
int direction)
Constructs a
ToStringScrollAdjuster object. |
ToStringScrollAdjuster(JSpinnerOperator oper,
java.lang.String pattern,
Operator.StringComparator comparator,
int direction)
Constructs a
ToStringScrollAdjuster object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object curvalue) |
java.lang.String |
getDescription()
Returns a printable scrolling description.
|
int |
getScrollOrientation()
Returns scrolling orientation.
|
getScrollDirection
public ToStringScrollAdjuster(JSpinnerOperator oper, java.lang.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, java.lang.String pattern, int direction)
ToStringScrollAdjuster
object.
Uses StringComparator
assigned to the operator.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 boolean equals(java.lang.Object curvalue)
equals
in class JSpinnerOperator.ObjectScrollAdjuster
public java.lang.String getDescription()
ScrollAdjuster
public int getScrollOrientation()
ScrollAdjuster
getScrollOrientation
in interface ScrollAdjuster
getScrollOrientation
in class JSpinnerOperator.ObjectScrollAdjuster