|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.databinding.DynaHtmlContainer
public class DynaHtmlContainer
HtmlContainer that supports databinding. Use this component if you want to render out HTML directly.
Field Summary |
---|
Constructor Summary | |
---|---|
DynaHtmlContainer()
Creates an initially unbound html container. |
|
DynaHtmlContainer(java.lang.Class beanClass,
java.lang.String property,
java.lang.String constructionHints)
Creates a databound html container. |
Method Summary | |
---|---|
void |
addTemplateComponent(Component component,
java.lang.String name)
|
void |
applyContext()
|
java.lang.String |
getTemplate()
|
void |
rebind()
This operation causes the component to reset it's content to that of the domain model. |
void |
setTemplate(java.lang.String template)
Directly sets the HTML you want to display. |
void |
setTemplateFromInputStream(java.io.InputStream templateStream)
Sets the HTML template from an InputStream. |
void |
setTemplateFromResource(java.lang.String resourceName)
Helper method to allow you to load a template file from a resource on your classpath. |
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
---|
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, preRender, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynaHtmlContainer()
Creates an initially unbound html container.
public DynaHtmlContainer(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
Creates a databound html container. Bind it to a property of type String . This string can than contain any HTML you want to visualize.
Method Detail |
---|
public void rebind()
RebindableComponent
This operation causes the component to reset it's content to that of the domain model.
rebind
in interface RebindableComponent
rebind
in class CustomComponent
public void setTemplate(java.lang.String template)
Directly sets the HTML you want to display. If your component is databound, don't use this method, but change the property you have bound to.
public java.lang.String getTemplate()
public void setTemplateFromInputStream(java.io.InputStream templateStream)
Sets the HTML template from an InputStream. This method reads out all data in the InputStream, and sets the template to that text.
public void setTemplateFromResource(java.lang.String resourceName)
Helper method to allow you to load a template file from a resource on your classpath. This method does NOT cache template content , to allow you to modify templates on the fly.
public void addTemplateComponent(Component component, java.lang.String name)
public void applyContext()
applyContext
in interface Precreation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |