# SliderHandle

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

```java
interface SliderHandle extends FormComponentHandle
```

Handle for the "Slider" form component. The Swing widget is a `JSlider` over an
integer range.

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

## Inherited from

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

## Methods

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

### getValue()

```java
int getValue()
```

The current slider value.

### getMinValue()

```java
int getMinValue()
```

The configured minimum value.

### getMaxValue()

```java
int getMaxValue()
```

The configured maximum value.

### setValue(int)

```java
SliderHandle setValue(int value)
```

Set the slider value.

### assertValue(int)

```java
SliderHandle assertValue(int expected)
```

Assert that the current value equals the expected value.

### assertEnabled()

```java
SliderHandle assertEnabled()
```

### assertDisabled()

```java
SliderHandle assertDisabled()
```

### assertVisible()

```java
SliderHandle assertVisible()
```

### assertInvisible()

```java
SliderHandle assertInvisible()
```

