Class JSliderAPIDriver
java.lang.Object
org.netbeans.jemmy.drivers.LightSupportiveDriver
org.netbeans.jemmy.drivers.scrolling.AbstractScrollDriver
org.netbeans.jemmy.drivers.scrolling.JSliderAPIDriver
- All Implemented Interfaces:
LightDriver
,ScrollDriver
A scroll driver serving JSlider component.
- Author:
- Alexandre Iline(alexandre.iline@sun.com)
-
Field Summary
Fields inherited from class org.netbeans.jemmy.drivers.scrolling.AbstractScrollDriver
ADJUST_CLICK_COUNT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Tells if this driver allows to perform drag'n'drop scrolling.protected boolean
canJump
(ComponentOperator oper) Tells if this driver allows to perform jumps.protected boolean
Tells if this driver allows to perform "push and wait" scrolling.protected void
drag
(ComponentOperator oper, Point pnt) Drag to a specified point.protected void
drop
(ComponentOperator oper, Point pnt) Drop at a specified point.protected int
Returns a number of pixels in one drag and drop scrolling.protected Timeout
Returns a timeout for sleeping between verifications during "push and wait" scrolling.protected void
jump
(ComponentOperator oper, ScrollAdjuster adj) Performs maximal scroll step.void
scrollToMaximum
(ComponentOperator oper, int orientation) Changes value to a maximum.void
scrollToMinimum
(ComponentOperator oper, int orientation) Changes value to a minimum.protected Point
Starts drag'n'drop scrolling.protected void
startPushAndWait
(ComponentOperator oper, int direction, int orientation) Presses something like a scroll button.protected void
step
(ComponentOperator oper, ScrollAdjuster adj) Performs minimal scrolling step.protected void
stopPushAndWait
(ComponentOperator oper, int direction, int orientation) Releases something like a scroll button.Methods inherited from class org.netbeans.jemmy.drivers.scrolling.AbstractScrollDriver
doDragAndDrop, doJumps, doPushAndWait, doSteps, scroll
Methods inherited from class org.netbeans.jemmy.drivers.LightSupportiveDriver
checkSupported, getSupported
-
Constructor Details
-
JSliderAPIDriver
public JSliderAPIDriver()Constructs a JSliderDriver object.
-
-
Method Details
-
scrollToMinimum
Description copied from interface:ScrollDriver
Changes value to a minimum.- Parameters:
oper
- Scroller operator.orientation
-java.awt.Adjustable.HORIZONTAL
orjava.awt.Adjustable.VERTICAL
-
scrollToMaximum
Description copied from interface:ScrollDriver
Changes value to a maximum.- Parameters:
oper
- Scroller operator.orientation
-java.awt.Adjustable.HORIZONTAL
orjava.awt.Adjustable.VERTICAL
-
step
Description copied from class:AbstractScrollDriver
Performs minimal scrolling step.- Specified by:
step
in classAbstractScrollDriver
- Parameters:
oper
- an operator.adj
- a scroll adjuster
-
getScrollDeltaTimeout
Description copied from class:AbstractScrollDriver
Returns a timeout for sleeping between verifications during "push and wait" scrolling.- Specified by:
getScrollDeltaTimeout
in classAbstractScrollDriver
- Parameters:
oper
- an operator.- Returns:
- a timeout
-
jump
Description copied from class:AbstractScrollDriver
Performs maximal scroll step.- Specified by:
jump
in classAbstractScrollDriver
- Parameters:
oper
- an operator.adj
- a scroll adjuster
-
startPushAndWait
Description copied from class:AbstractScrollDriver
Presses something like a scroll button.- Specified by:
startPushAndWait
in 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:AbstractScrollDriver
Releases something like a scroll button.- Specified by:
stopPushAndWait
in 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:AbstractScrollDriver
Starts drag'n'drop scrolling.- Specified by:
startDragging
in classAbstractScrollDriver
- Parameters:
oper
- an operator.- Returns:
- start drigging point.
-
drop
Description copied from class:AbstractScrollDriver
Drop at a specified point.- Specified by:
drop
in classAbstractScrollDriver
- Parameters:
oper
- an operator.pnt
- the point to drop.
-
drag
Description copied from class:AbstractScrollDriver
Drag to a specified point.- Specified by:
drag
in classAbstractScrollDriver
- Parameters:
oper
- an operator.pnt
- the point to drag to.
-
canDragAndDrop
Description copied from class:AbstractScrollDriver
Tells if this driver allows to perform drag'n'drop scrolling.- Specified by:
canDragAndDrop
in classAbstractScrollDriver
- Parameters:
oper
- an operator.- Returns:
- true if this driver allows to drag'n'drop.
-
canJump
Description copied from class:AbstractScrollDriver
Tells if this driver allows to perform jumps.- Specified by:
canJump
in classAbstractScrollDriver
- Parameters:
oper
- an operator.- Returns:
- true if this driver allows to jump.
-
canPushAndWait
Description copied from class:AbstractScrollDriver
Tells if this driver allows to perform "push and wait" scrolling.- Specified by:
canPushAndWait
in classAbstractScrollDriver
- Parameters:
oper
- an operator.- Returns:
- true if this driver allows to "push and wait".
-
getDragAndDropStepLength
Description copied from class:AbstractScrollDriver
Returns a number of pixels in one drag and drop scrolling.- Specified by:
getDragAndDropStepLength
in classAbstractScrollDriver
- Parameters:
oper
- an operator.- Returns:
- drag'n'drop step length.
-