|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.services.web.components.WebComponent
public abstract class WebComponent
A web component is a object with a life cycle management. In this life cycle, after the complete initialisation of this attributes, the component_load method is invoked.
| Field Summary | |
|---|---|
protected java.util.ArrayList<BindingExpression> |
dataBindings
|
protected WebPage |
webPage
|
protected org.w3c.dom.Element |
xmlNode
|
| Constructor Summary | |
|---|---|
WebComponent()
|
|
| Method Summary | |
|---|---|
void |
addBindingExpression(BindingExpression bindingExpression)
|
void |
addChildComponent(WebComponent webComponent)
Adds a new web component as child of the current component. |
void |
component_init(WebPageEvent event)
Fired when the web page begin his initialization. |
void |
component_load(WebPageEvent event)
Fired when the web page is fully initialized. |
void |
component_preRepeaterDuplications(WebPageEvent event)
|
java.util.List<WebComponent> |
getChildComponents()
Returns all sub components defined in this web component. |
java.util.ArrayList<BindingExpression> |
getDataBinding()
|
protected java.util.ArrayList<org.w3c.dom.Element> |
getElementsByTagName(java.lang.String namespace,
java.lang.String tagName)
|
java.lang.String |
getId()
|
WebPage |
getWebPage()
Returns the web page that contains this web component. |
org.w3c.dom.Element |
getXmlNode()
Retreive the XML node, in the DOM (Document Object Model) of the page, associated to this WebComponent instance. |
void |
setId(java.lang.String identifier)
|
void |
setWebPage(WebPage webPage)
Changes the web page that contains this web component. |
void |
setXmlNode(org.w3c.dom.Element element)
Set the XML node associated to this web component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<BindingExpression> dataBindings
protected org.w3c.dom.Element xmlNode
protected WebPage webPage
| Constructor Detail |
|---|
public WebComponent()
| Method Detail |
|---|
public org.w3c.dom.Element getXmlNode()
org.omg.dom.Element).public void setXmlNode(org.w3c.dom.Element element)
element - the XML node to store in the web component.
java.lang.RuntimeException - thrown if this method is invoked more one time.
java.lang.NullPointerException - thrown if the XML element is null.public WebPage getWebPage()
public void setWebPage(WebPage webPage)
webPage - The web page that contains this web component.public java.lang.String getId()
public void setId(java.lang.String identifier)
public java.util.ArrayList<BindingExpression> getDataBinding()
public void addBindingExpression(BindingExpression bindingExpression)
public void addChildComponent(WebComponent webComponent)
webComponent - The component to adds as child.public java.util.List<WebComponent> getChildComponents()
Returns all sub components defined in this web component.
This method not returns simple DOM elements that are not binded to a Java class. In consequence, if you want find all sub DOM elements, prefer the usage ofcomponent.getXmlNode().getChildNodes() statement.
protected java.util.ArrayList<org.w3c.dom.Element> getElementsByTagName(java.lang.String namespace,
java.lang.String tagName)
namespace - tagName - public void component_preRepeaterDuplications(WebPageEvent event)
public void component_init(WebPageEvent event)
event - Qualify the current web page event.public void component_load(WebPageEvent event)
event - Qualify the current web page event.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||