public abstract class Component extends Object
Constructor and Description |
---|
Component() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildren(Component... components)
Add components to this component.
|
protected void |
addCssOptions(String... cssOptions)
Add cssOption to this component.
|
protected String |
getBodyContent(ISkinConfig skinConfig) |
String |
getCssClass() |
String |
getCssOptions()
Gets the css options associated to component.
|
protected HtmlTool |
getHtmlTool(ISkinConfig skinConfig)
Gets the tool
HtmlTool . |
protected String |
onPreRender(ISkinConfig skinConfig,
String bodyContent)
generic pre-rendering method executed on all components of context.
|
protected void |
setCssClass(String cssClass) |
@Nonnull public String getCssClass()
String
representing the css classes to apply to component.protected void setCssClass(String cssClass)
cssClass
- the cssClass to set@Nonnull public final String getCssOptions()
<body>
element as global state.
Used generally in association with javascript to adapt specific javascript action to current state of component.
String
representing the css options associated to component.protected void addChildren(Component... components)
components
- list of componentprotected final void addCssOptions(@Nonnull String... cssOptions)
cssOptions
- a css option.protected String onPreRender(@Nonnull ISkinConfig skinConfig, @Nonnull String bodyContent)
skinConfig
- the current skin config.bodyContent
- the current body content.String
representing the transformed body content on pre-rendering.protected HtmlTool getHtmlTool(@Nonnull ISkinConfig skinConfig)
HtmlTool
.skinConfig
- a config (can not be null
).HtmlTool
.@Nonnull protected String getBodyContent(@Nonnull ISkinConfig skinConfig)
skinConfig
- a config (can not be null
).Copyright © 2012–2023 Friederich Christophe. All rights reserved.