Class JSpinnerOperator.ListScrollAdjuster
java.lang.Object
org.netbeans.jemmy.operators.JSpinnerOperator.ListScrollAdjuster
- All Implemented Interfaces:
ScrollAdjuster
- Enclosing class:
JSpinnerOperator
A
ScrollAdjuster to be used for JSpinner
component having SpinnerListModel model.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Field Summary
Fields inherited from interface ScrollAdjuster
DECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION -
Constructor Summary
ConstructorsConstructorDescriptionListScrollAdjuster(JSpinnerOperator oper, int itemIndex) Constructs aListScrollAdjusterobject.ListScrollAdjuster(JSpinnerOperator oper, Object value) Constructs aListScrollAdjusterobject. -
Method Summary
Modifier and TypeMethodDescriptionReturns a printable scrolling description.intReturns scroll direction to reach necessary scroller value.intReturns scrolling orientation.
-
Constructor Details
-
ListScrollAdjuster
Constructs aListScrollAdjusterobject.- Parameters:
oper- an operator to work with.value- a value to scroll to.
-
ListScrollAdjuster
Constructs aListScrollAdjusterobject.- Parameters:
oper- an operator to work with.itemIndex- an item index to scroll to.
-
-
Method Details
-
getScrollDirection
public int getScrollDirection()Description copied from interface:ScrollAdjusterReturns scroll direction to reach necessary scroller value.- Specified by:
getScrollDirectionin interfaceScrollAdjuster- Returns:
- one of the values: INCREASE_SCROLL_DIRECTION, DECREASE_SCROLL_DIRECTION or DO_NOT_TOUCH_SCROLL_DIRECTION.
-
getScrollOrientation
public int getScrollOrientation()Description copied from interface:ScrollAdjusterReturns scrolling orientation.- Specified by:
getScrollOrientationin interfaceScrollAdjuster- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
-
getDescription
Description copied from interface:ScrollAdjusterReturns a printable scrolling description.- Specified by:
getDescriptionin interfaceScrollAdjuster- Returns:
- a description.
-