public interface StyleContextReceiver
Style
instances implement this interface,
but FormComponent
s 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.Modifier and Type | Method and Description |
---|---|
void |
setStyleContext(StyleContext styleContext)
Called by the framework when the current screen changes.
|
void setStyleContext(StyleContext styleContext)
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.
styleContext
- the style context