Class JSpinnerOperator.ExactScrollAdjuster
java.lang.Object
org.netbeans.jemmy.operators.JSpinnerOperator.ObjectScrollAdjuster
org.netbeans.jemmy.operators.JSpinnerOperator.ExactScrollAdjuster
- All Implemented Interfaces:
ScrollAdjuster
- Enclosing class:
JSpinnerOperator
public static class JSpinnerOperator.ExactScrollAdjuster
extends JSpinnerOperator.ObjectScrollAdjuster
Class for a scrolling of a spinner having unknown model type.
Checks spinner value for exact equality with a specified value.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Field Summary
Fields inherited from interface ScrollAdjuster
DECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION -
Constructor Summary
ConstructorsConstructorDescriptionExactScrollAdjuster(JSpinnerOperator oper, Object obj, int direction) Constructs aExactScrollAdjusterobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a printable scrolling description.intReturns scrolling orientation.Methods inherited from class JSpinnerOperator.ObjectScrollAdjuster
getScrollDirection
-
Constructor Details
-
ExactScrollAdjuster
Constructs aExactScrollAdjusterobject.- Parameters:
oper- an operator to work with.direction- a scrolling direction - one ofScrollAdjuster.*_SCROLL_DIRECTIONfields.
-
-
Method Details
-
equals
- Specified by:
equalsin classJSpinnerOperator.ObjectScrollAdjuster
-
getDescription
Description copied from interface:ScrollAdjusterReturns a printable scrolling description.- Returns:
- a description.
-
getScrollOrientation
public int getScrollOrientation()Description copied from interface:ScrollAdjusterReturns scrolling orientation.- Specified by:
getScrollOrientationin interfaceScrollAdjuster- Overrides:
getScrollOrientationin classJSpinnerOperator.ObjectScrollAdjuster- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
-