Class BodyContext
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.model.Component
-
- org.devacfr.maven.skins.reflow.context.Context<BodyContext>
-
- org.devacfr.maven.skins.reflow.context.BodyContext
-
public class BodyContext extends Context<BodyContext>
- Since:
- 2.3
- Author:
- Christophe Friederich
-
-
Constructor Summary
Constructors Constructor Description BodyContext(ISkinConfig config)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitialize()Allows to initialize the context.protected StringonPreRender(String bodyContent)generic pre-rendering method executed on all components of context.-
Methods inherited from class org.devacfr.maven.skins.reflow.context.Context
buildContext, getFooter, getNavbar, getScrollTop, getType, preRender, self, toString, withType
-
Methods inherited from class org.devacfr.maven.skins.reflow.model.Component
addChildren, addCssOptions, getCssClass, getCssOptions, setCssClass
-
-
-
-
Constructor Detail
-
BodyContext
public BodyContext(@Nonnull ISkinConfig config)
Default constructor.- Parameters:
config- a config (can not benull).
-
-
Method Detail
-
initialize
protected void initialize()
Description copied from class:ContextAllows to initialize the context.- Overrides:
initializein classContext<BodyContext>
-
onPreRender
protected String onPreRender(@Nonnull String bodyContent)
Description copied from class:Componentgeneric pre-rendering method executed on all components of context.- Overrides:
onPreRenderin classContext<BodyContext>- Parameters:
bodyContent- the current body content.- Returns:
- Returns a
Stringrepresenting the transformed body content on pre-rendering.
-
-