# DateSpinnerHandle

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

```java
interface DateSpinnerHandle extends FormComponentHandle
```

Handle for the "Spinner of dates" form component. The Swing widget is a `JSpinner`
backed by a `javax.swing.SpinnerDateModel`.

Reach this handle via [`ScreenHandle.dateSpinner`](../ui/ScreenHandle.md#datespinner).

## Inherited from

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

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getDate()`](#getdate) | `Date` | The currently displayed date. |
| [`setDate(Date)`](#setdate-date) | `DateSpinnerHandle` | Set the displayed date. |
| [`assertDate(Date)`](#assertdate-date) | `DateSpinnerHandle` | Assert the currently displayed date equals the expected value. |
| [`assertEnabled()`](#assertenabled) | `DateSpinnerHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `DateSpinnerHandle` |  |
| [`assertVisible()`](#assertvisible) | `DateSpinnerHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `DateSpinnerHandle` |  |

### getDate()

```java
Date getDate()
```

The currently displayed date.

### setDate(Date)

```java
DateSpinnerHandle setDate(Date date)
```

Set the displayed date.

### assertDate(Date)

```java
DateSpinnerHandle assertDate(Date expected)
```

Assert the currently displayed date equals the expected value.

### assertEnabled()

```java
DateSpinnerHandle assertEnabled()
```

### assertDisabled()

```java
DateSpinnerHandle assertDisabled()
```

### assertVisible()

```java
DateSpinnerHandle assertVisible()
```

### assertInvisible()

```java
DateSpinnerHandle assertInvisible()
```

