ControlButton (install4j API)
Description: declaration: package: com.install4j.api.styles, interface: ControlButton

Package com.install4j.api.styles

# Interface ControlButton

public interface ControlButton
Implemented by form components that want to handle navigation functionality for a style.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `focusControlButton()`
  Called when the control button is focused.
  `ControlButtonType`
  `getControlButtonType()`
  Called by the framework to check the type of the control button.
  `void`
  `setControlButtonText(String text)`
  Called when the control button text is changed.

- ## Method Details

  - ### setControlButtonText

    void setControlButtonText(String text)
    Called when the control button text is changed. This is called each time when a screen is activated, but it can also be triggered programatically by a call to `WizardContext.setControlButtonText(ControlButtonType, String)`.
    Parameters:
      `text` - the text for the button

  - ### getControlButtonType

    ControlButtonType getControlButtonType()
    Called by the framework to check the type of the control button. If your form component can handle multiple `ControlButtonType`s, implement `ControlButtonContainer` instead.
    Returns:
      the control button type

  - ### focusControlButton

    void focusControlButton()
    Called when the control button is focused. This is triggered programatically by a call to `WizardContext.focusControlButton(ControlButtonType)`.