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

# Interface KeyValuePairHandle

All Superinterfaces:
  `FormComponentHandle`

public interface KeyValuePairHandle extends FormComponentHandle
Handle for the "Key value pair label" form component. The principal Swing widget is the value `JLabel`, paired with a read-only key leading label.

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `KeyValuePairHandle`
  `assertDisabled()`
  `KeyValuePairHandle`
  `assertEnabled()`
  `KeyValuePairHandle`
  `assertInvisible()`
  `KeyValuePairHandle`
  `assertValue(String expected)`
  Assert that the value label's text equals the expected value.
  `KeyValuePairHandle`
  `assertVisible()`
  `String`
  `getValueText()`
  The text currently shown in the value label.

  ### Methods inherited from interface FormComponentHandle

  `getId, isEnabled, isVisible`

- ## Method Details

  - ### getValueText

    @NotNull String getValueText()
    The text currently shown in the value label.

  - ### assertValue

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

  - ### assertEnabled

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

  - ### assertDisabled

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

  - ### assertVisible

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

  - ### assertInvisible

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