# SimpleLeadingLabelHandle

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

```java
interface SimpleLeadingLabelHandle extends FormComponentHandle
```

Handle for the "Leading label" form component. The Swing widget is a `JLabel` occupying
the leading-label slot of a form component row, with no center widget. Useful for decorating
a form layout with standalone labels.

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

## Inherited from

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

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getText()`](#gettext) | `String` | The current label text. |
| [`assertText(String)`](#asserttext-string) | `SimpleLeadingLabelHandle` | Assert that the leading label displays the expected value. |
| [`assertEnabled()`](#assertenabled) | `SimpleLeadingLabelHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `SimpleLeadingLabelHandle` |  |
| [`assertVisible()`](#assertvisible) | `SimpleLeadingLabelHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `SimpleLeadingLabelHandle` |  |

### getText()

```java
String getText()
```

The current label text.

### assertText(String)

```java
SimpleLeadingLabelHandle assertText(String expected)
```

Assert that the leading label displays the expected value.

### assertEnabled()

```java
SimpleLeadingLabelHandle assertEnabled()
```

### assertDisabled()

```java
SimpleLeadingLabelHandle assertDisabled()
```

### assertVisible()

```java
SimpleLeadingLabelHandle assertVisible()
```

### assertInvisible()

```java
SimpleLeadingLabelHandle assertInvisible()
```

