Class JScrollBarAPIDriver
java.lang.Object
org.netbeans.jemmy.drivers.LightSupportiveDriver
org.netbeans.jemmy.drivers.scrolling.AbstractScrollDriver
org.netbeans.jemmy.drivers.scrolling.JScrollBarAPIDriver
- All Implemented Interfaces:
LightDriver, ScrollDriver
ScrollDriver for javax.swing.JScrollBar 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 booleanTells if this driver allows to perform drag'n'drop scrolling.protected booleancanJump(ComponentOperator oper) Tells if this driver allows to perform jumps.protected booleanTells if this driver allows to perform "push and wait" scrolling.protected voiddrag(ComponentOperator oper, Point pnt) Drag to a specified point.protected voiddrop(ComponentOperator oper, Point pnt) Drop at a specified point.protected intReturns a number of pixels in one drag and drop scrolling.protected TimeoutReturns a timeout for sleeping between verifications during "push and wait" scrolling.protected voidjump(ComponentOperator oper, ScrollAdjuster adj) Performs maximal scroll step.voidscrollToMaximum(ComponentOperator oper, int orientation) Changes value to a maximum.voidscrollToMinimum(ComponentOperator oper, int orientation) Changes value to a minimum.protected PointStarts drag'n'drop scrolling.protected voidstartPushAndWait(ComponentOperator oper, int direction, int orientation) Presses something like a scroll button.protected voidstep(ComponentOperator oper, ScrollAdjuster adj) Performs minimal scrolling step.protected voidstopPushAndWait(ComponentOperator oper, int direction, int orientation) Releases something like a scroll button.Methods inherited from class AbstractScrollDriver
doDragAndDrop, doJumps, doPushAndWait, doSteps, scrollMethods inherited from class LightSupportiveDriver
checkSupported, getSupported
-
Constructor Details
-
JScrollBarAPIDriver
public JScrollBarAPIDriver()Constructs a JScrollBarDriver.
-
-
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
-
step
Description copied from class:AbstractScrollDriverPerforms minimal scrolling step.- Specified by:
stepin classAbstractScrollDriver- Parameters:
oper- an operator.adj- a scroll adjuster
-
getScrollDeltaTimeout
Description copied from class:AbstractScrollDriverReturns a timeout for sleeping between verifications during "push and wait" scrolling.- Specified by:
getScrollDeltaTimeoutin classAbstractScrollDriver- Parameters:
oper- an operator.- Returns:
- a timeout
-
jump
Description copied from class:AbstractScrollDriverPerforms maximal scroll step.- Specified by:
jumpin classAbstractScrollDriver- Parameters:
oper- an operator.adj- a scroll adjuster
-
startPushAndWait
Description copied from class:AbstractScrollDriverPresses something like a scroll button.- Specified by:
startPushAndWaitin classAbstractScrollDriver- 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.
-
stopPushAndWait
Description copied from class:AbstractScrollDriverReleases something like a scroll button.- Specified by:
stopPushAndWaitin classAbstractScrollDriver- 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.
-
startDragging
Description copied from class:AbstractScrollDriverStarts drag'n'drop scrolling.- Specified by:
startDraggingin classAbstractScrollDriver- Parameters:
oper- an operator.- Returns:
- start drigging point.
-
drop
Description copied from class:AbstractScrollDriverDrop at a specified point.- Specified by:
dropin classAbstractScrollDriver- Parameters:
oper- an operator.pnt- the point to drop.
-
drag
Description copied from class:AbstractScrollDriverDrag to a specified point.- Specified by:
dragin classAbstractScrollDriver- Parameters:
oper- an operator.pnt- the point to drag to.
-
canDragAndDrop
Description copied from class:AbstractScrollDriverTells if this driver allows to perform drag'n'drop scrolling.- Specified by:
canDragAndDropin classAbstractScrollDriver- Parameters:
oper- an operator.- Returns:
- true if this driver allows to drag'n'drop.
-
canJump
Description copied from class:AbstractScrollDriverTells if this driver allows to perform jumps.- Specified by:
canJumpin classAbstractScrollDriver- Parameters:
oper- an operator.- Returns:
- true if this driver allows to jump.
-
canPushAndWait
Description copied from class:AbstractScrollDriverTells if this driver allows to perform "push and wait" scrolling.- Specified by:
canPushAndWaitin classAbstractScrollDriver- Parameters:
oper- an operator.- Returns:
- true if this driver allows to "push and wait".
-
getDragAndDropStepLength
Description copied from class:AbstractScrollDriverReturns a number of pixels in one drag and drop scrolling.- Specified by:
getDragAndDropStepLengthin classAbstractScrollDriver- Parameters:
oper- an operator.- Returns:
- drag'n'drop step length.
-