# NumberSpinnerHandle

Import: `import com.install4j.api.test.formcomponents.NumberSpinnerHandle;`

```java
interface NumberSpinnerHandle extends FormComponentHandle
```

Handle for the "Spinner of integer values" form component. The Swing widget is an
integer-valued `JSpinner`.

Reach this handle via [`ScreenHandle.numberSpinner`](../ui/ScreenHandle.md#numberspinner).

## Inherited from

- [FormComponentHandle](FormComponentHandle.md) — 7 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getValue()`](#getvalue) | `int` | The current integer value. |
| [`getMinValue()`](#getminvalue) | `int` | The configured minimum value. |
| [`getMaxValue()`](#getmaxvalue) | `int` | The configured maximum value. |
| [`setValue(int)`](#setvalue-int) | `NumberSpinnerHandle` | Set the current integer value. |
| [`increment()`](#increment) | `NumberSpinnerHandle` | Increment the value by one. |
| [`decrement()`](#decrement) | `NumberSpinnerHandle` | Decrement the value by one. |
| [`assertValue(int)`](#assertvalue-int) | `NumberSpinnerHandle` | Assert that the current value equals the expected value. |
| [`assertEnabled()`](#assertenabled) | `NumberSpinnerHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `NumberSpinnerHandle` |  |
| [`assertVisible()`](#assertvisible) | `NumberSpinnerHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `NumberSpinnerHandle` |  |

### getValue()

```java
int getValue()
```

The current integer value.

### getMinValue()

```java
int getMinValue()
```

The configured minimum value.

### getMaxValue()

```java
int getMaxValue()
```

The configured maximum value.

### setValue(int)

```java
NumberSpinnerHandle setValue(int value)
```

Set the current integer value.

### increment()

```java
NumberSpinnerHandle increment()
```

Increment the value by one.

### decrement()

```java
NumberSpinnerHandle decrement()
```

Decrement the value by one.

### assertValue(int)

```java
NumberSpinnerHandle assertValue(int expected)
```

Assert that the current value equals the expected value.

### assertEnabled()

```java
NumberSpinnerHandle assertEnabled()
```

### assertDisabled()

```java
NumberSpinnerHandle assertDisabled()
```

### assertVisible()

```java
NumberSpinnerHandle assertVisible()
```

### assertInvisible()

```java
NumberSpinnerHandle assertInvisible()
```

