DateSpinnerHandle (install4j API)
Description: declaration: package: com.install4j.api.test.formcomponents, interface: DateSpinnerHandle

# Interface DateSpinnerHandle

All Superinterfaces:
  `FormComponentHandle`

public interface DateSpinnerHandle extends FormComponentHandle
Handle for the "Spinner of dates" form component. The Swing widget is a `JSpinner` backed by a `SpinnerDateModel`.

Reach this handle via `ScreenHandle.dateSpinner()`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DateSpinnerHandle`
  `assertDate(Date expected)`
  Assert the currently displayed date equals the expected value.
  `DateSpinnerHandle`
  `assertDisabled()`
  `DateSpinnerHandle`
  `assertEnabled()`
  `DateSpinnerHandle`
  `assertInvisible()`
  `DateSpinnerHandle`
  `assertVisible()`
  `Date`
  `getDate()`
  The currently displayed date.
  `DateSpinnerHandle`
  `setDate(Date date)`
  Set the displayed date.

  ### Methods inherited from interface FormComponentHandle

  `getId, isEnabled, isVisible`

- ## Method Details

  - ### getDate

    @NotNull Date getDate()
    The currently displayed date.

  - ### setDate

    @NotNull DateSpinnerHandle setDate(@NotNull Date date)
    Set the displayed date.

  - ### assertDate

    @NotNull DateSpinnerHandle assertDate(@NotNull Date expected)
    Assert the currently displayed date equals the expected value.

  - ### assertEnabled

    @NotNull DateSpinnerHandle assertEnabled()
    Specified by:
      `assertEnabled` in interface `FormComponentHandle`

  - ### assertDisabled

    @NotNull DateSpinnerHandle assertDisabled()
    Specified by:
      `assertDisabled` in interface `FormComponentHandle`

  - ### assertVisible

    @NotNull DateSpinnerHandle assertVisible()
    Specified by:
      `assertVisible` in interface `FormComponentHandle`

  - ### assertInvisible

    @NotNull DateSpinnerHandle assertInvisible()
    Specified by:
      `assertInvisible` in interface `FormComponentHandle`