public abstract class AbstractStyle extends AbstractBean implements Style
Constructor and Description |
---|
AbstractStyle() |
Modifier and Type | Method and Description |
---|---|
void |
activated()
This method is called by the framework just after a screen with this style has been activated.
|
void |
deactivated()
This method is called by the framework just after a screen with this style has been deactivated.
|
Anchor |
getAnchor()
Returns a default value for the anchor of the style component.
|
Context |
getContext()
Returns the
Context that the framework has associated with
this form component in setContext(Context) . |
StyleManager |
getStyleManager()
Returns the
StyleManager . |
boolean |
isStandalone()
Returns if the style is intended to by applied to installer applications, screens and screen groups.
|
void |
setContext(Context context)
This method is called by the framework to set the
Context just after the
style has been constructed. |
void |
willActivate()
This method is called by the framework just before a screen with this style is activated.
|
executeActionListAsync, executeActionListSync, getTextOverrideValue, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, rollbackActionList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createComponent
isFillHorizontal, isFillVertical
setStyleContext
focusControlButton, setControlButtonEnabled, setControlButtonText, setControlButtonVisible
public void setContext(Context context)
Style
Context
just after the
style has been constructed. This is either an InstallerContext
or an
UninstallerContext
, depending on the 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()
.
setContext
in interface Style
context
- the context.public boolean isStandalone()
Style
false
, the style can only be nested into other styles.isStandalone
in interface Style
true
or false
public void willActivate()
Style
StyleManager.willActivate(Style)
.willActivate
in interface Style
Screen.willActivate()
public void activated()
Style
StyleManager.activated(Style)
activated
in interface Style
Screen.activated()
public void deactivated()
Style
StyleManager.deactivated(Style)
deactivated
in interface Style
public Context getContext()
Context
that the framework has associated with
this form component in setContext(Context)
.public StyleManager getStyleManager()
StyleManager
. This is a convenience method and calls
getContext().getWizardContext().getStyleManager()
.public Anchor getAnchor()
getAnchor
in interface VisualContainerBean
Anchor.NORTHWEST
VisualContainerBean.getAnchor()