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.
JSpinnerOperator.ToStringScrollAdjuster
public JSpinnerOperator.ToStringScrollAdjuster(JSpinnerOperator oper,
String pattern,
Operator.StringComparator comparator,
int direction)
- Constructs a
ToStringScrollAdjuster
object.
- Parameters:
oper
- an operator to work with.pattern
- a pattern to compare withcomparator
- specifies string comparision algorithm.direction
- a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION
fields.
JSpinnerOperator.ToStringScrollAdjuster
public JSpinnerOperator.ToStringScrollAdjuster(JSpinnerOperator oper,
String pattern,
int direction)
- Constructs a
ToStringScrollAdjuster
object.
Uses StringComparator
assigned to the operator.
- Parameters:
oper
- an operator to work with.pattern
- a pattern to compare withdirection
- a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION
fields.
equals
public boolean equals(Object curvalue)
- Specified by:
equals
in class JSpinnerOperator.ObjectScrollAdjuster
getDescription
public 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 interface ScrollAdjuster
- Overrides:
getScrollOrientation
in class JSpinnerOperator.ObjectScrollAdjuster
- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.