Package org.netbeans.jemmy.operators
Class JSpinnerOperator.NumberScrollAdjuster
java.lang.Object
org.netbeans.jemmy.operators.JSpinnerOperator.NumberScrollAdjuster
- All Implemented Interfaces:
ScrollAdjuster
- Enclosing class:
JSpinnerOperator
A
ScrollAdjuster
to be used for JSpinner
component having SpinnerNumberModel
model.- See Also:
-
Field Summary
Fields inherited from interface org.netbeans.jemmy.drivers.scrolling.ScrollAdjuster
DECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION
-
Constructor Summary
ConstructorsConstructorDescriptionNumberScrollAdjuster
(JSpinnerOperator oper, double value) Constructs aNumberScrollAdjuster
object.NumberScrollAdjuster
(JSpinnerOperator oper, Number value) Constructs aNumberScrollAdjuster
object. -
Method Summary
Modifier and TypeMethodDescriptionReturns a printable scrolling description.int
Returns scroll direction to reach necessary scroller value.int
Returns scrolling orientation.
-
Constructor Details
-
NumberScrollAdjuster
Constructs aNumberScrollAdjuster
object.- Parameters:
oper
- an operator to work with.value
- a value to scroll to.
-
NumberScrollAdjuster
Constructs aNumberScrollAdjuster
object.- Parameters:
oper
- an operator to work with.value
- a value to scroll to.
-
-
Method Details
-
getScrollDirection
public int getScrollDirection()Description copied from interface:ScrollAdjuster
Returns scroll direction to reach necessary scroller value.- Specified by:
getScrollDirection
in interfaceScrollAdjuster
- Returns:
- one of the values: INCREASE_SCROLL_DIRECTION, DECREASE_SCROLL_DIRECTION or DO_NOT_TOUCH_SCROLL_DIRECTION.
-
getScrollOrientation
public int getScrollOrientation()Description copied from interface:ScrollAdjuster
Returns scrolling orientation.- Specified by:
getScrollOrientation
in interfaceScrollAdjuster
- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
-
getDescription
Description copied from interface:ScrollAdjuster
Returns a printable scrolling description.- Specified by:
getDescription
in interfaceScrollAdjuster
- Returns:
- a description.
-