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

# Interface LabelHandle

All Superinterfaces:
  `FormComponentHandle`

public interface LabelHandle extends FormComponentHandle
Handle for the "Label" form component. The Swing widget is a single-line `JLabel`.

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LabelHandle`
  `assertDisabled()`
  `LabelHandle`
  `assertEnabled()`
  `LabelHandle`
  `assertInvisible()`
  `LabelHandle`
  `assertText(String expected)`
  Assert that the label's text equals the expected value.
  `LabelHandle`
  `assertVisible()`
  `String`
  `getText()`
  The current label text.

  ### Methods inherited from interface FormComponentHandle

  `getId, isEnabled, isVisible`

- ## Method Details

  - ### getText

    @NotNull String getText()
    The current label text.

  - ### assertText

    @NotNull LabelHandle assertText(@NotNull String expected)
    Assert that the label's text equals the expected value.

  - ### assertEnabled

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

  - ### assertDisabled

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

  - ### assertVisible

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

  - ### assertInvisible

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