public class ScrollbarDriver extends AWTScrollDriver
ADJUST_CLICK_COUNT
Constructor and Description |
---|
ScrollbarDriver()
Constructs a ScrollbarDriver.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Point |
getClickPoint(ComponentOperator oper,
int direction,
int orientation)
Defines a click point which needs to be used in
order to increase/decrease scroller value.
|
void |
scrollToMaximum(ComponentOperator oper,
int orientation)
Changes value to a maximum.
|
void |
scrollToMinimum(ComponentOperator oper,
int orientation)
Changes value to a minimum.
|
canDragAndDrop, canJump, canPushAndWait, drag, drop, getDragAndDropStepLength, getScrollDeltaTimeout, jump, startDragging, startPushAndWait, step, stopPushAndWait
doDragAndDrop, doJumps, doPushAndWait, doSteps, scroll
checkSupported, getSupported
public void scrollToMinimum(ComponentOperator oper, int orientation)
ScrollDriver
oper
- Scroller operator.orientation
- java.awt.Adjustable.HORIZONTAL
or java.awt.Adjustable.VERTICAL
public void scrollToMaximum(ComponentOperator oper, int orientation)
ScrollDriver
oper
- Scroller operator.orientation
- java.awt.Adjustable.HORIZONTAL
or java.awt.Adjustable.VERTICAL
protected java.awt.Point getClickPoint(ComponentOperator oper, int direction, int orientation)
AWTScrollDriver
getClickPoint
in class AWTScrollDriver
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.