Package org.netbeans.jemmy.operators
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.
-
-
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 ExactScrollAdjuster(JSpinnerOperator oper, java.lang.Object obj, int direction)
Constructs aExactScrollAdjuster
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object curvalue)
java.lang.String
getDescription()
Returns a printable scrolling description.int
getScrollOrientation()
Returns scrolling orientation.-
Methods inherited from class org.netbeans.jemmy.operators.JSpinnerOperator.ObjectScrollAdjuster
getScrollDirection
-
-
-
-
Constructor Detail
-
ExactScrollAdjuster
public ExactScrollAdjuster(JSpinnerOperator oper, java.lang.Object obj, int direction)
Constructs aExactScrollAdjuster
object.- Parameters:
oper
- an operator to work with.direction
- a scrolling direction - one ofScrollAdjuster.*_SCROLL_DIRECTION
fields.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object curvalue)
- Specified by:
equals
in classJSpinnerOperator.ObjectScrollAdjuster
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ScrollAdjuster
Returns a printable scrolling description.- Returns:
- a description.
-
getScrollOrientation
public int getScrollOrientation()
Description copied from interface:ScrollAdjuster
Returns scrolling orientation.- Specified by:
getScrollOrientation
in interfaceScrollAdjuster
- Overrides:
getScrollOrientation
in classJSpinnerOperator.ObjectScrollAdjuster
- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
-
-