public abstract class AbstractTemplateWebComponent extends AbstractWebComponent
| Modifier and Type | Field and Description |
|---|---|
protected org.jsoup.nodes.Element |
themeTemplate
theme template is a web page , which contains all components.
|
changed, component, htmlInnerElement, htmlOuterElement, id, styleElement| Constructor and Description |
|---|
AbstractTemplateWebComponent(String id,
Component component,
org.jsoup.nodes.Element themeTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
createHtmlElement() |
protected ComponentElements |
findAndCloneElement(org.jsoup.nodes.Element template,
boolean emptyInnerHtml)
find the html elements for the web component.
|
protected org.jsoup.nodes.Element |
findElementByClass(org.jsoup.nodes.Element element,
String shortName) |
protected org.jsoup.nodes.Element |
findElementByClass(String shortName) |
abstract org.jsoup.nodes.Element |
getComponentHtmlTemplate()
get class level HTML template.
|
org.jsoup.nodes.Element |
getComponentHtmlTemplate(boolean createIfNotExists)
create it if not exists.
|
abstract String |
getComponentType()
e.g.
|
protected String |
getElementClass(String shortName) |
protected String |
getInnerClass() |
protected String |
getOuterClass() |
protected File |
getParameterAsFile(Map<String,Object> parameters,
String name)
somehow when parse multipart form post, no way to distinguish a empty
file field and string field.
|
abstract void |
setComponentHtmlTemplate(org.jsoup.nodes.Element componentHtmlTemplate) |
addChild, applyEvents, applyStyle, calcHash, calcHashOfChildrenId, createCommonStyles, getChildrenIdsHash, getChildrenWebComponents, getComponent, getFullInputName, getFullInputName, getHtmlInnerElementForNewChild, getHtmlOuterElement, getId, getOwnHash, getParentWebComponent, getStyleElement, init, isStaticResource, loadFromResource, null2Empty, processEvent, processEvent, replaceChild, setChildrenIdsHash, setId, setOwnHash, setStaticResource, updateIdInHtml, writeFile, writeFileaddChild, addChildren, checkConsistency, clear, copy, detach, findFirst, findFirstAncestor, getChildren, getDepth, getParent, getRoot, indexOf, isLast, isLeaf, isRoot, remove, removeAllChildren, removeChild, replace, replaceSingleNode, setChildren, setParent, tranverse, tranverseUpprotected org.jsoup.nodes.Element themeTemplate
public abstract org.jsoup.nodes.Element getComponentHtmlTemplate()
public abstract void setComponentHtmlTemplate(org.jsoup.nodes.Element componentHtmlTemplate)
public abstract String getComponentType()
public org.jsoup.nodes.Element getComponentHtmlTemplate(boolean createIfNotExists)
protected ComponentElements findAndCloneElement(org.jsoup.nodes.Element template, boolean emptyInnerHtml)
element - componentName - protected String getOuterClass()
protected String getInnerClass()
protected org.jsoup.nodes.Element findElementByClass(org.jsoup.nodes.Element element,
String shortName)
protected org.jsoup.nodes.Element findElementByClass(String shortName)
public void createHtmlElement()
createHtmlElement in interface WebComponentcreateHtmlElement in class AbstractWebComponentCopyright © 2016. All Rights Reserved.