Package com.install4j.api.styles
Interface StyleContextReceiver
-
- All Known Subinterfaces:
Style
- All Known Implementing Classes:
AbstractStyle,WrapperStyle
public interface StyleContextReceiverImplemented by objects that handle style context changes. AllStyleinstances implement this interface, butFormComponents 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetStyleContext(StyleContext styleContext)Called by the framework when the current screen changes.
-
-
-
Method Detail
-
setStyleContext
void setStyleContext(StyleContext styleContext)
Called by the framework when the current screen changes. This method is called beforeStyle.createComponent()where theStyleContextmay be required for constructing the style component.You have to delegate this method call to any nested styles, see
NestedStyleContainerfor more information.- Parameters:
styleContext- the style context
-
-