org.netbeans.jemmy.drivers.scrolling
Class ScrollPaneDriver
java.lang.Object
org.netbeans.jemmy.drivers.LightSupportiveDriver
org.netbeans.jemmy.drivers.scrolling.AbstractScrollDriver
org.netbeans.jemmy.drivers.scrolling.AWTScrollDriver
org.netbeans.jemmy.drivers.scrolling.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)
Methods inherited from class org.netbeans.jemmy.drivers.scrolling.AWTScrollDriver |
canDragAndDrop, canJump, canPushAndWait, drag, drop, getDragAndDropStepLength, getScrollDeltaTimeout, jump, startDragging, startPushAndWait, step, stopPushAndWait |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrollPaneDriver
public ScrollPaneDriver()
- Constructs a ScrollPaneDriver.
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.