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
ScrollDriver for java.awt.ScrollPane component type.
- Author:
- Alexandre Iline(alexandre.iline@sun.com)
-
Field Summary
Fields inherited from class AbstractScrollDriver
ADJUST_CLICK_COUNT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PointgetClickPoint(ComponentOperator oper, int direction, int orientation) Defines a click point which needs to be used in order to increase/decrease scroller value.voidscrollToMaximum(ComponentOperator oper, int orientation) Changes value to a maximum.voidscrollToMinimum(ComponentOperator oper, int orientation) Changes value to a minimum.Methods inherited from class AWTScrollDriver
canDragAndDrop, canJump, canPushAndWait, drag, drop, getDragAndDropStepLength, getScrollDeltaTimeout, jump, startDragging, startPushAndWait, step, stopPushAndWaitMethods inherited from class AbstractScrollDriver
doDragAndDrop, doJumps, doPushAndWait, doSteps, scrollMethods inherited from class LightSupportiveDriver
checkSupported, getSupported
-
Constructor Details
-
ScrollPaneDriver
public ScrollPaneDriver()Constructs a ScrollPaneDriver.
-
-
Method Details
-
scrollToMinimum
Description copied from interface:ScrollDriverChanges value to a minimum.- Parameters:
oper- Scroller operator.orientation-java.awt.Adjustable.HORIZONTALorjava.awt.Adjustable.VERTICAL
-
scrollToMaximum
Description copied from interface:ScrollDriverChanges value to a maximum.- Parameters:
oper- Scroller operator.orientation-java.awt.Adjustable.HORIZONTALorjava.awt.Adjustable.VERTICAL
-
getClickPoint
Description copied from class:AWTScrollDriverDefines a click point which needs to be used in order to increase/decrease scroller value.- Specified by:
getClickPointin classAWTScrollDriver- 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.
-