Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.swtbot.swt.finder.widgets
Class SWTBotSpinner

    java.lang.Object
      org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<Spinner>
          org.eclipse.swtbot.swt.finder.widgets.SWTBotSpinner

    public class SWTBotSpinner

extends AbstractSWTBot<Spinner>

Represents a spinner.

Version:
  $Id$
Author:
  Yann N. Dauphin

Field Summary

Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot
`description, display, log, widget`

Constructor Summary
`SWTBotSpinner(Spinner widget)` Constructs a new instance with the given widget.
`SWTBotSpinner(Spinner widget, SelfDescribing description)` Constructs an instance with the given widget

Method Summary
`int` | `getDigits()` Return the number of decimal places of the spinner.
`int` | `getIncrement()` Return the increment of the spinner.
`int` | `getMaximum()` Return the maximum value the spinner will accept.
`int` | `getMinimum()` Return the minimum value the spinner will accept.
`int` | `getPageIncrement()` Return the page increment of the spinner.
`int` | `getSelection()` Return the current value of the spinner.
`void` | `setSelection(int value)` Set the selection to the specified value.

Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot
`absoluteLocation, assertEnabled, asyncExec, backgroundColor, click, click, clickXY, contextMenu, contextMenu, createEvent, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getText, getToolTipText, hasStyle, isActive, isEnabled, isEnabledInternal, isVisible, keyboard, notify, notify, notify, pressShortcut, pressShortcut, pressShortcut, rightClick, rightClick, setFocus, sleep, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, toString, traverse, waitForEnabled`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### SWTBotSpinner

    public SWTBotSpinner(Spinner widget)
                  throws WidgetNotFoundException

  Constructs a new instance with the given widget.

  Parameters:
    `widget` - the spinner.
  Throws:
    `WidgetNotFoundException` - if the widget is `null` or widget has been disposed.

### SWTBotSpinner

    public SWTBotSpinner(Spinner widget,
                         SelfDescribing description)
                  throws WidgetNotFoundException

  Constructs an instance with the given widget

  Parameters:
    `widget` - the widget.
    `description` - the description of the widget, this will be reported by `AbstractSWTBot.toString()`
  Throws:
    `WidgetNotFoundException` - if the widget is `null` or widget has been disposed.

Method Detail

### getSelection

    public int getSelection()

  Return the current value of the spinner.

  Returns:
    the current selection in the spinner.

### setSelection

    public void setSelection(int value)

  Set the selection to the specified value.

  Parameters:
    `value` - the value to set into the spinner.

### getMaximum

    public int getMaximum()

  Return the maximum value the spinner will accept.

  Returns:
    the maximum of the spinner.

### getMinimum

    public int getMinimum()

  Return the minimum value the spinner will accept.

  Returns:
    the minimum of the spinner.

### getIncrement

    public int getIncrement()

  Return the increment of the spinner.

  Returns:
    the increment of the spinner.

### getPageIncrement

    public int getPageIncrement()

  Return the page increment of the spinner.

  Returns:
    the increment of the spinner.

### getDigits

    public int getDigits()

  Return the number of decimal places of the spinner.

  Returns:
    the number of decimal places of the spinner.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD