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.
  • Constructor Details

    • ToStringScrollAdjuster

      public 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 with
      comparator - specifies string comparision algorithm.
      direction - a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION fields.
    • ToStringScrollAdjuster

      public 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 with
      comparator - specifies string comparision algorithm.
      direction - a scrolling direction - one of ScrollAdjuster.*_SCROLL_DIRECTION fields.
  • Method Details