Class ScrollPaneDriver

All Implemented Interfaces:
LightDriver, ScrollDriver

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

    • ScrollPaneDriver

      public ScrollPaneDriver()
      Constructs a ScrollPaneDriver.
  • Method Details

    • position

      protected int position(ComponentOperator oper, int orientation)
      Specified by:
      position in class AbstractScrollDriver
    • 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.