|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zhtml.impl.AbstractTag
org.zkoss.zhtml.impl.ContentTag
public class ContentTag
Represents a tag that shall generate the child elements directly.
A typical example is Script.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zhtml.impl.AbstractTag |
|---|
AbstractTag.ExtraCtrl |
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
AbstractComponent.Children |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zhtml.impl.AbstractTag |
|---|
_tagnm |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
|---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
| Constructor Summary | |
|---|---|
ContentTag(java.lang.String tagnm)
|
|
ContentTag(java.lang.String tagnm,
java.lang.String content)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getContent()
Returns the content. |
java.lang.String |
getWidgetClass()
Returns the widget class, "zhtml.Content". |
protected boolean |
isChildable()
No child is allowed. |
protected void |
redrawChildrenDirectly(TagRenderContext rc,
Execution exec,
java.io.Writer out)
Renders the children directly to the given output. |
protected void |
renderProperties(ContentRenderer renderer)
Called by ( ComponentCtrl.redraw(java.io.Writer)) to render the
properties, excluding the enclosing tag and children. |
void |
setContent(java.lang.String content)
Sets the content. |
| Methods inherited from class org.zkoss.zhtml.impl.AbstractTag |
|---|
clone, getDynamicProperty, getExtraCtrl, getSclass, getStyle, getTag, hasDynamicProperty, isOrphanTag, redraw, setDynamicProperty, setSclass, setStyle, setVisible, shallHideId, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentTag(java.lang.String tagnm)
public ContentTag(java.lang.String tagnm,
java.lang.String content)
| Method Detail |
|---|
public java.lang.String getWidgetClass()
getWidgetClass in interface ComponentgetWidgetClass in class AbstractTagComponent.setWidgetClass(java.lang.String)public java.lang.String getContent()
public void setContent(java.lang.String content)
protected boolean isChildable()
isChildable in class AbstractTag
protected void renderProperties(ContentRenderer renderer)
throws java.io.IOException
AbstractComponentComponentCtrl.redraw(java.io.Writer)) to render the
properties, excluding the enclosing tag and children.
Default: it renders AbstractComponent.getId() if it was assigned,
and event names if listened (and listed in AbstractComponent.getClientEvents()).
Note: it doesn't render AbstractComponent.getWidgetClass(), AbstractComponent.getUuid()
and AbstractComponent.getMold(), which are caller's job.
renderProperties in class AbstractTagjava.io.IOException
protected void redrawChildrenDirectly(TagRenderContext rc,
Execution exec,
java.io.Writer out)
throws java.io.IOException
AbstractTagAbstractTag.redraw(java.io.Writer) is going to render
the content (HTML tags) directly.
If it is about to generate the JavaScript code
AbstractComponent.redrawChildren(java.io.Writer) will be called instead.
You have to override this method if the deriving class has additional information to render.
redrawChildrenDirectly in class AbstractTagjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||