Interface StyleContextReceiver

All Known Subinterfaces:
Style
All Known Implementing Classes:
AbstractStyle, WrapperStyle

public interface StyleContextReceiver
Implemented by objects that handle style context changes. All Style instances implement this interface, but FormComponents can also implement it if they are used in styles and want to react to style context changes. For example, you could implement it in a special form component that shows the screen title.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by the framework when the current screen changes.
  • Method Details

    • setStyleContext

      void setStyleContext(StyleContext styleContext)
      Called by the framework when the current screen changes. This method is called before Style.createComponent() where the StyleContext may be required for constructing the style component.

      You have to delegate this method call to any nested styles, see NestedStyleContainer for more information.

      Parameters:
      styleContext - the style context