Package org.netbeans.jemmy.operators
Class JSpinnerOperator.ListScrollAdjuster
- java.lang.Object
-
- org.netbeans.jemmy.operators.JSpinnerOperator.ListScrollAdjuster
-
- All Implemented Interfaces:
ScrollAdjuster
- Enclosing class:
- JSpinnerOperator
public static class JSpinnerOperator.ListScrollAdjuster extends java.lang.Object implements ScrollAdjuster
AScrollAdjusterto be used forJSpinnercomponent havingSpinnerListModelmodel.- See Also:
JSpinnerOperator.ListSpinnerOperator
-
-
Field Summary
-
Fields inherited from interface org.netbeans.jemmy.drivers.scrolling.ScrollAdjuster
DECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION
-
-
Constructor Summary
Constructors Constructor Description ListScrollAdjuster(JSpinnerOperator oper, int itemIndex)Constructs aListScrollAdjusterobject.ListScrollAdjuster(JSpinnerOperator oper, java.lang.Object value)Constructs aListScrollAdjusterobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns a printable scrolling description.intgetScrollDirection()Returns scroll direction to reach necessary scroller value.intgetScrollOrientation()Returns scrolling orientation.
-
-
-
Constructor Detail
-
ListScrollAdjuster
public ListScrollAdjuster(JSpinnerOperator oper, java.lang.Object value)
Constructs aListScrollAdjusterobject.- Parameters:
oper- an operator to work with.value- a value to scroll to.
-
ListScrollAdjuster
public ListScrollAdjuster(JSpinnerOperator oper, int itemIndex)
Constructs aListScrollAdjusterobject.- Parameters:
oper- an operator to work with.itemIndex- an item index to scroll to.
-
-
Method Detail
-
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
public java.lang.String getDescription()
Description copied from interface:ScrollAdjusterReturns a printable scrolling description.- Specified by:
getDescriptionin interfaceScrollAdjuster- Returns:
- a description.
-
-