Package com.install4j.api.styles
Class AbstractStyle
java.lang.Object
com.install4j.api.beans.AbstractBean
com.install4j.api.styles.AbstractStyle
- All Implemented Interfaces:
Bean,VisualContainerBean,ControlButtonContainer,Style,StyleContextReceiver
- Direct Known Subclasses:
WrapperStyle
Abstract base class for styles.
All methods that have a reasonable default answer are overridden in the class.
This class saves the context that is set by the framework and provides a getter for it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called by the framework just after a screen with this style has been activated.voidThis method is called by the framework just after a screen with this style has been deactivated.Returns a default value for the anchor of the style component.Returns theContextthat the framework has associated with this form component insetContext(Context).Returns theStyleManager.booleanReturns if the style is intended to by applied to installer applications, screens and screen groups.voidsetContext(Context context) This method is called by the framework to set theContextjust after the style has been constructed.voidThis method is called by the framework just before a screen with this style is activated.Methods inherited from class com.install4j.api.beans.AbstractBean
executeActionListAsync, executeActionListSync, getTextOverrideValue, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, rollbackActionListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.install4j.api.styles.ControlButtonContainer
focusControlButton, setControlButtonEnabled, setControlButtonText, setControlButtonVisibleMethods inherited from interface com.install4j.api.styles.Style
createComponentMethods inherited from interface com.install4j.api.styles.StyleContextReceiver
setStyleContextMethods inherited from interface com.install4j.api.beans.VisualContainerBean
isFillHorizontal, isFillVertical
-
Constructor Details
-
AbstractStyle
public AbstractStyle()
-
-
Method Details
-
setContext
Description copied from interface:StyleThis method is called by the framework to set theContextjust after the style has been constructed. This is either anInstallerContextor anUninstallerContext, depending on whether the style is used in an installer or an uninstaller.When nesting other styles, this is earliest occasion that the style manager can be obtained by calling
context.getWizardContext().getStyleManager().- Specified by:
setContextin interfaceStyle- Parameters:
context- the context.
-
isStandalone
public boolean isStandalone()Description copied from interface:StyleReturns if the style is intended to by applied to installer applications, screens and screen groups. Only standalone styles are available in the corresponding style selectors and can be set as the default style. If this method returnsfalse, the style can only be nested into other styles.- Specified by:
isStandalonein interfaceStyle- Returns:
trueorfalse
-
willActivate
public void willActivate()Description copied from interface:StyleThis method is called by the framework just before a screen with this style is activated. This call has to be delegated to nested styles by usingStyleManager.willActivate(Style).- Specified by:
willActivatein interfaceStyle- See Also:
-
activated
public void activated()Description copied from interface:StyleThis method is called by the framework just after a screen with this style has been activated. This call has to be delegated to nested styles by usingStyleManager.activated(Style) -
deactivated
public void deactivated()Description copied from interface:StyleThis method is called by the framework just after a screen with this style has been deactivated. This call has to be delegated to nested styles by usingStyleManager.deactivated(Style)- Specified by:
deactivatedin interfaceStyle
-
getContext
Returns theContextthat the framework has associated with this form component insetContext(Context).- Returns:
- the context.
-
getStyleManager
Returns theStyleManager. This is a convenience method and callsgetContext().getWizardContext().getStyleManager().- Returns:
- the style manager
-
getAnchor
Returns a default value for the anchor of the style component.- Specified by:
getAnchorin interfaceVisualContainerBean- Returns:
Anchor.NORTHWEST- See Also:
-