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

# Interface StyleContext

public interface StyleContext
Context object that gives access to the style-relevant properties of a screen and its content component that should be embedded into the screen style component. When a new screen is activated, the `Style` instance receives a new `StyleContext` instance with a call to `StyleContextReceiver.setStyleContext(StyleContext)`. That method is called before `Style.createComponent()`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `JComponent`
  `getContentComponent()`
  Returns the UI component of the current `Screen` as returned by `Screen.createComponent()`.
  `String`
  `getSubTitle()`
  The subtitle of the screen as returned by `Screen.getSubTitle()`.
  `String`
  `getTitle()`
  The title of the screen as returned by `Screen.getTitle()`.

- ## Method Details

  - ### getContentComponent

    JComponent getContentComponent()
    Returns the UI component of the current `Screen` as returned by `Screen.createComponent()`. It is the responsibility of the screen style to embed this component when `Style.createComponent()` is called.
    Returns:
      the UI component

  - ### getTitle

    String getTitle()
    The title of the screen as returned by `Screen.getTitle()`. It is the responsibility of the screen style to display this title when `Style.createComponent()` is called.
    Returns:
      the title

  - ### getSubTitle

    String getSubTitle()
    The subtitle of the screen as returned by `Screen.getSubTitle()`. It is the responsibility of the screen style to display this subtitle when `Style.createComponent()` is called.
    Returns:
      the subtitle