Class JSpinnerOperator.NumberScrollAdjuster

java.lang.Object
org.netbeans.jemmy.operators.JSpinnerOperator.NumberScrollAdjuster
All Implemented Interfaces:
ScrollAdjuster
Enclosing class:
JSpinnerOperator

public static class JSpinnerOperator.NumberScrollAdjuster extends Object implements ScrollAdjuster
A ScrollAdjuster to be used for JSpinner component having SpinnerNumberModel model.
See Also:
  • Constructor Details

    • NumberScrollAdjuster

      public NumberScrollAdjuster(JSpinnerOperator oper, double value)
      Constructs a NumberScrollAdjuster object.
      Parameters:
      oper - an operator to work with.
      value - a value to scroll to.
    • NumberScrollAdjuster

      public NumberScrollAdjuster(JSpinnerOperator oper, Number value)
      Constructs a NumberScrollAdjuster object.
      Parameters:
      oper - an operator to work with.
      value - a value to scroll to.
  • Method Details

    • getScrollDirection

      public int getScrollDirection()
      Description copied from interface: ScrollAdjuster
      Returns scroll direction to reach necessary scroller value.
      Specified by:
      getScrollDirection in interface ScrollAdjuster
      Returns:
      one of the values: INCREASE_SCROLL_DIRECTION, DECREASE_SCROLL_DIRECTION or DO_NOT_TOUCH_SCROLL_DIRECTION.
    • getScrollOrientation

      public int getScrollOrientation()
      Description copied from interface: ScrollAdjuster
      Returns scrolling orientation.
      Specified by:
      getScrollOrientation in interface ScrollAdjuster
      Returns:
      one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
    • getDescription

      public String getDescription()
      Description copied from interface: ScrollAdjuster
      Returns a printable scrolling description.
      Specified by:
      getDescription in interface ScrollAdjuster
      Returns:
      a description.