Package org.netbeans.jemmy.operators
Class JSpinnerOperator.ObjectScrollAdjuster
- java.lang.Object
-
- org.netbeans.jemmy.operators.JSpinnerOperator.ObjectScrollAdjuster
-
- All Implemented Interfaces:
ScrollAdjuster
- Direct Known Subclasses:
JSpinnerOperator.ExactScrollAdjuster,JSpinnerOperator.ToStringScrollAdjuster
- Enclosing class:
- JSpinnerOperator
public abstract static class JSpinnerOperator.ObjectScrollAdjuster extends java.lang.Object implements ScrollAdjuster
Abstract class for a scrolling of a spinner having unknown model type. A subclass needs to overrideequals(Object)value to specify a criteria of successful scrolling.
-
-
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
Constructors Constructor Description ObjectScrollAdjuster(JSpinnerOperator oper, int direction)Constructs aObjectScrollAdjusterobject.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(java.lang.Object curvalue)intgetScrollDirection()Returns scroll direction to reach necessary scroller value.intgetScrollOrientation()Returns scrolling orientation.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.netbeans.jemmy.drivers.scrolling.ScrollAdjuster
getDescription
-
-
-
-
Constructor Detail
-
ObjectScrollAdjuster
public ObjectScrollAdjuster(JSpinnerOperator oper, int direction)
Constructs aObjectScrollAdjusterobject.- Parameters:
oper- an operator to work with.direction- a scrolling direction - one ofScrollAdjuster.*_SCROLL_DIRECTIONfields.
-
-
Method Detail
-
getScrollDirection
public int getScrollDirection()
Description copied from interface:ScrollAdjusterReturns scroll direction to reach necessary scroller value.- Specified by:
getScrollDirectionin interfaceScrollAdjuster- Returns:
- one of the values: INCREASE_SCROLL_DIRECTION, DECREASE_SCROLL_DIRECTION or DO_NOT_TOUCH_SCROLL_DIRECTION.
-
equals
public abstract boolean equals(java.lang.Object curvalue)
- Overrides:
equalsin classjava.lang.Object
-
getScrollOrientation
public int getScrollOrientation()
Description copied from interface:ScrollAdjusterReturns scrolling orientation.- Specified by:
getScrollOrientationin interfaceScrollAdjuster- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
-
-