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

# Package com.install4j.api.styles

package com.install4j.api.styles
This package contains the interface and abstract base class for styles.

See the API overview for general remarks on how to use the install4j API.

The `Style` interface contains all methods that have to be implemented by an actual style. When you develop your own styles, it is recommended that you extend the abstract base classes in this package rather than implement the interface itself.

Styles can nest other styles with help of the `StyleManager`. Since there are a number of delegations that have to be implemented correctly and the life-cycle of the screen style has to be taken into account, it is advisable to use `WrapperStyle` to nest a single style. To get more help with nesting styles, see `NestedStyleContainer`.

- Related Packages
  Package
  Description
  com.install4j.api
  This package contains general utility classes for the install4j API.
- Class
  Description
  AbstractStyle
  Abstract base class for styles.
  ControlButton
  Implemented by form components that want to handle navigation functionality for a style.
  ControlButtonContainer
  Implemented by objects that handle navigation functionality.
  NestedStyleContainer
  Implemented by styles that contain nested styles.
  Style
  All styles must implement this 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.
  StyleContextReceiver
  Implemented by objects that handle screen style context changes.
  StyleManager
  Helper for working with nested styles.
  WrapperStyle
  Abstract base class for a screen style that wraps a single user-selectable style.