Class ScrollbarDriver

All Implemented Interfaces:
LightDriver, ScrollDriver

public class ScrollbarDriver extends AWTScrollDriver
ScrollDriver for java.awt.Scrollbar component type.
Author:
Alexandre Iline(alexandre.iline@sun.com)
  • Constructor Details

    • ScrollbarDriver

      public ScrollbarDriver()
      Constructs a ScrollbarDriver.
  • Method Details

    • scrollToMinimum

      public void scrollToMinimum(ComponentOperator oper, int orientation)
      Description copied from interface: ScrollDriver
      Changes value to a minimum.
      Parameters:
      oper - Scroller operator.
      orientation - java.awt.Adjustable.HORIZONTAL or java.awt.Adjustable.VERTICAL
    • scrollToMaximum

      public void scrollToMaximum(ComponentOperator oper, int orientation)
      Description copied from interface: ScrollDriver
      Changes value to a maximum.
      Parameters:
      oper - Scroller operator.
      orientation - java.awt.Adjustable.HORIZONTAL or java.awt.Adjustable.VERTICAL
    • getClickPoint

      protected Point getClickPoint(ComponentOperator oper, int direction, int orientation)
      Description copied from class: AWTScrollDriver
      Defines a click point which needs to be used in order to increase/decrease scroller value.
      Specified by:
      getClickPoint in class AWTScrollDriver
      Parameters:
      oper - an operator.
      direction - - one of the ScrollAdjister.INCREASE_SCROLL_DIRECTION, ScrollAdjister.DECREASE_SCROLL_DIRECTION, ScrollAdjister.DO_NOT_TOUCH_SCROLL_DIRECTION values.
      orientation - one of the Adjustable.HORIZONTAL or Adjustable.VERTICAL values.
      Returns:
      a point to click.