public ScrollPaneDriver() {
super(new String[] {"org.netbeans.jemmy.operators.ScrollPaneOperator"});
}
public void scrollToMinimum(ComponentOperator oper, final int orientation) {
final Adjustable adj =
(orientation == Scrollbar.HORIZONTAL) ?
((ScrollPaneOperator)oper).getHAdjustable() :
((ScrollPaneOperator)oper).getVAdjustable();
scroll(oper,
new ScrollAdjuster() {
public int getScrollDirection() {
return((adj.getMinimum() < adj.getValue()) ?
DECREASE_SCROLL_DIRECTION :
DO_NOT_TOUCH_SCROLL_DIRECTION);
}
public int getScrollOrientation() {
return(orientation);