Package org.zkoss.zhtml.impl
Class ContentTag
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zhtml.impl.AbstractTag
-
- org.zkoss.zhtml.impl.ContentTag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.DynamicPropertied,org.zkoss.zk.ui.ext.RawId,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl
public class ContentTag extends AbstractTag
Represents a tag that shall generate the child elements directly. A typical example isScript.- Since:
- 5.0.8
- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zkoss.zhtml.impl.AbstractTag
AbstractTag.ExtraCtrl
-
-
Field Summary
-
Fields inherited from class org.zkoss.zhtml.impl.AbstractTag
_tagnm
-
-
Constructor Summary
Constructors Constructor Description ContentTag(java.lang.String tagnm)ContentTag(java.lang.String tagnm, java.lang.String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContent()Returns the content.java.lang.StringgetWidgetClass()Returns the widget class, "zhtml.Content".protected booleanisChildable()No child is allowed.protected voidredrawChildrenDirectly(TagRenderContext rc, org.zkoss.zk.ui.Execution exec, java.io.Writer out)Renders the children directly to the given output.protected voidrenderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)voidsetContent(java.lang.String content)Sets the content.-
Methods inherited from class org.zkoss.zhtml.impl.AbstractTag
clone, getAccesskey, getDir, getDynamicProperties, getDynamicProperty, getExtraCtrl, getLang, getPropertyAccess, getSclass, getStyle, getTabindex, getTag, getTitle, hasDynamicProperty, isContenteditable, isDraggable, isHidden, isOrphanTag, isSpellcheck, redraw, setAccesskey, setContenteditable, setDir, setDraggable, setDynamicProperty, setHidden, setLang, setSclass, setSpellcheck, setStyle, setTabindex, setTitle, setVisible, shallHideId, toString
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, destroyIndexCacheMap, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, disableHostChanged, enableBindingAnnotation, enableHostChanged, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getForwards, getId, getIndexCacheMap, getLastChild, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttributeNames, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, initIndexCacheMap, insertBefore, invalidate, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onParentChanged, onWrongValue, query, queryAll, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderPropertiesOnly, replace, response, response, response, service, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
-
-
-
Method Detail
-
getWidgetClass
public java.lang.String getWidgetClass()
Returns the widget class, "zhtml.Content".- Specified by:
getWidgetClassin interfaceorg.zkoss.zk.ui.Component- Overrides:
getWidgetClassin classAbstractTag
-
getContent
public java.lang.String getContent()
Returns the content.
-
setContent
public void setContent(java.lang.String content)
Sets the content.
-
isChildable
protected boolean isChildable()
No child is allowed.- Overrides:
isChildablein classAbstractTag
-
renderProperties
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException- Overrides:
renderPropertiesin classAbstractTag- Throws:
java.io.IOException
-
redrawChildrenDirectly
protected void redrawChildrenDirectly(TagRenderContext rc, org.zkoss.zk.ui.Execution exec, java.io.Writer out) throws java.io.IOException
Description copied from class:AbstractTagRenders the children directly to the given output. Notice it is called only ifAbstractTag.redraw(java.io.Writer)is going to render the content (HTML tags) directly. If it is about to generate the JavaScript codeAbstractComponent.redrawChildren(java.io.Writer)will be called instead.You have to override this method if the deriving class has additional information to render.
- Overrides:
redrawChildrenDirectlyin classAbstractTag- Throws:
java.io.IOException
-
-