Package com.install4j.api.styles
Interface StyleManager
public interface StyleManager
Helper for working with nested styles.
See
NestedStyleContainer for more information.-
Method Summary
Modifier and TypeMethodDescriptionvoidNotify a nested screen style that it has been activated.cloneStyleById(String styleId) Clones a screen style for a specified ID.createStyleComponent(Style style) Create a screen style component.voiddeactivated(Style style) Notify a nested screen style that it has been deactivated.getStyleById(String styleId) Get the screen style for a specified ID.voidwillActivate(Style style) Notify a nested screen style that it will be activated.
-
Method Details
-
getStyleById
Get the screen style for a specified ID. If the screen style is aFormPanelContainer, its form panel is not initialized. Instead of callingStyle.createComponent(), you have to callcreateStyleComponent(Style)in order to handle the creation of a form panel.- Parameters:
styleId- the ID of the screen style- Returns:
- the screen style
-
cloneStyleById
Clones a screen style for a specified ID. This is useful if you want to include multiple instances of the same screen style within a single style.- Parameters:
styleId- the ID of the screen style- Returns:
- the cloned screen style
-
createStyleComponent
Create a screen style component. If the screen style is aFormPanelContainer, a new form panel will be set on the screen style beforeStyle.createComponent()is called.- Parameters:
style- the screen style- Returns:
- the component
-
willActivate
Notify a nested screen style that it will be activated. You should call this method in the implementation ofStyle.willActivate(). This will callFormComponent.formWillActivate()on all form components if the nested screen style is aFormPanelContainer.- Parameters:
style- the nested screen style
-
activated
Notify a nested screen style that it has been activated. You should call this method in the implementation ofStyle.activated(). This will callFormComponent.formActivated()on all form components if the nested screen style is aFormPanelContainer.- Parameters:
style- the nested screen style
-
deactivated
Notify a nested screen style that it has been deactivated. You should call this method in the implementation ofStyle.deactivated(). This will callFormComponent.formDeactivated()on all form components if the nested screen style is aFormPanelContainer.- Parameters:
style- the nested screen style
-