Package org.netbeans.jemmy.operators
Class JSpinnerOperator.DateScrollAdjuster
- java.lang.Object
-
- org.netbeans.jemmy.operators.JSpinnerOperator.DateScrollAdjuster
-
- All Implemented Interfaces:
ScrollAdjuster
- Enclosing class:
- JSpinnerOperator
public static class JSpinnerOperator.DateScrollAdjuster extends java.lang.Object implements ScrollAdjuster
AScrollAdjuster
to be used forJSpinner
component havingSpinnerDateModel
model.- See Also:
JSpinnerOperator.DateSpinnerOperator
-
-
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 DateScrollAdjuster(JSpinnerOperator oper, java.util.Date date)
Constructs aDateScrollAdjuster
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns a printable scrolling description.int
getScrollDirection()
Returns scroll direction to reach necessary scroller value.int
getScrollOrientation()
Returns scrolling orientation.
-
-
-
Constructor Detail
-
DateScrollAdjuster
public DateScrollAdjuster(JSpinnerOperator oper, java.util.Date date)
Constructs aDateScrollAdjuster
object.- Parameters:
oper
- an operator to work with.date
- a date to scroll to.
-
-
Method Detail
-
getScrollDirection
public int getScrollDirection()
Description copied from interface:ScrollAdjuster
Returns scroll direction to reach necessary scroller value.- Specified by:
getScrollDirection
in 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:ScrollAdjuster
Returns scrolling orientation.- Specified by:
getScrollOrientation
in interfaceScrollAdjuster
- Returns:
- one of the values: Adjustable.HORIZONTAL or Adjustable.VERTICAL.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ScrollAdjuster
Returns a printable scrolling description.- Specified by:
getDescription
in interfaceScrollAdjuster
- Returns:
- a description.
-
-