Package com.install4j.api.styles
Interface StyleManager
-
public interface StyleManagerHelper for working with nested styles. SeeNestedStyleContainerfor more information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivated(Style style)Notify a nested style that it has been activated.StylecloneStyleById(java.lang.String styleId)Clones a style for a specified ID.javax.swing.JComponentcreateStyleComponent(Style style)Create a style component.voiddeactivated(Style style)Notify a nested style that it has been deactivated.StylegetStyleById(java.lang.String styleId)Get the style for a specified ID.voidwillActivate(Style style)Notify a nested style that it will be activated.
-
-
-
Method Detail
-
getStyleById
Style getStyleById(java.lang.String styleId)
Get the style for a specified ID. If the 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 style- Returns:
- the style
-
cloneStyleById
Style cloneStyleById(java.lang.String styleId)
Clones a style for a specified ID. This is useful if you want to include multiple instances of the same style within a single style.- Parameters:
styleId- the ID of the style- Returns:
- the cloned style
-
createStyleComponent
javax.swing.JComponent createStyleComponent(Style style)
Create a style component. If the style is aFormPanelContainer, a new form panel will be set on the style beforeStyle.createComponent()is called.- Parameters:
style- the style- Returns:
- the component
-
willActivate
void willActivate(Style style)
Notify a nested 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 style is aFormPanelContainer.- Parameters:
style- the nested style
-
activated
void activated(Style style)
Notify a nested 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 style is aFormPanelContainer.- Parameters:
style- the nested style
-
deactivated
void deactivated(Style style)
Notify a nested 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 style is aFormPanelContainer.- Parameters:
style- the nested style
-
-