Package org.netbeans.jemmy.operators
Class JSpinnerOperator.ToStringScrollAdjuster
java.lang.Object
org.netbeans.jemmy.operators.JSpinnerOperator.ObjectScrollAdjuster
org.netbeans.jemmy.operators.JSpinnerOperator.ToStringScrollAdjuster
- All Implemented Interfaces:
ScrollAdjuster
- Enclosing class:
JSpinnerOperator
public static class JSpinnerOperator.ToStringScrollAdjuster
extends JSpinnerOperator.ObjectScrollAdjuster
Class for a scrolling of a spinner having unknown model type.
Checks spinner value's toString() reprsentation to match a string pattern.
-
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
ConstructorsConstructorDescriptionToStringScrollAdjuster
(JSpinnerOperator oper, String pattern, int direction) Constructs aToStringScrollAdjuster
object.ToStringScrollAdjuster
(JSpinnerOperator oper, String pattern, Operator.StringComparator comparator, int direction) Constructs aToStringScrollAdjuster
object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a printable scrolling description.int
Returns scrolling orientation.Methods inherited from class org.netbeans.jemmy.operators.JSpinnerOperator.ObjectScrollAdjuster
getScrollDirection
-
Constructor Details
-
ToStringScrollAdjuster
public ToStringScrollAdjuster(JSpinnerOperator oper, String pattern, Operator.StringComparator comparator, int direction) Constructs aToStringScrollAdjuster
object.- Parameters:
oper
- an operator to work with.pattern
- a pattern to compare withcomparator
- specifies string comparision algorithm.direction
- a scrolling direction - one ofScrollAdjuster.*_SCROLL_DIRECTION
fields.
-
ToStringScrollAdjuster
Constructs aToStringScrollAdjuster
object. UsesStringComparator
assigned to the operator.- Parameters:
oper
- an operator to work with.pattern
- a pattern to compare withdirection
- a scrolling direction - one ofScrollAdjuster.*_SCROLL_DIRECTION
fields.comparator
- specifies string comparision algorithm.
-
-
Method Details
-
equals
- Specified by:
equals
in classJSpinnerOperator.ObjectScrollAdjuster
-
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.
-