org.zkoss.jsf.zul.tag.impl
Class AbstractTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTagBase
      extended by javax.faces.webapp.UIComponentClassicTagBase
          extended by javax.faces.webapp.UIComponentTag
              extended by javax.faces.webapp.UIComponentBodyTag
                  extended by org.zkoss.jsf.zul.tag.impl.AbstractTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspIdConsumer, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AttributeTag, ComponentDefinitionTag, CustomAttributesTag, InitTag, LeafTag, RootTag, ZScriptTag

public abstract class AbstractTag
extends javax.faces.webapp.UIComponentBodyTag

The skeletal class for implementing the generic JSF tags.

Author:
Dennis.Chen

Field Summary
protected static java.lang.String COMP_TYPE_PREFIX
           
protected static java.lang.String JSF_CORE_NS
           
protected static java.lang.String JSF_CORE_PREFIX
           
protected static java.lang.String JSF_HTML_NS
           
protected static java.lang.String ZUL_JSF_NS
           
 
Fields inherited from class javax.faces.webapp.UIComponentClassicTagBase
bodyContent, pageContext, UNIQUE_ID_PREFIX
 
Fields inherited from class javax.faces.webapp.UIComponentTagBase
log
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
protected AbstractTag(java.lang.String typeName)
          constructor.
 
Method Summary
 int doAfterBody()
          Override method, set String of BodyContent into instance of ZULJSF Component which associated to this Tag.
 java.lang.String getComponentType()
           
protected  int getDoStartValue()
          Override method, called by UIComponentTag.
 java.lang.String getRendererType()
           
protected  boolean isSkipBody()
          check should this tag skip the body content.
 void release()
           
 void setIf(java.lang.String ifcond)
          Sets the if condition.
protected  void setProperties(javax.faces.component.UIComponent comp)
          Override method, set properties of ZULJSF Component
 void setUnless(java.lang.String unless)
           
 
Methods inherited from class javax.faces.webapp.UIComponentTag
createComponent, getParentUIComponentTag, hasBinding, isSuppressed, isValueReference, setBinding, setRendered
 
Methods inherited from class javax.faces.webapp.UIComponentClassicTagBase
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doEndTag, doInitBody, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriter
 
Methods inherited from class javax.faces.webapp.UIComponentTagBase
getELContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMP_TYPE_PREFIX

protected static final java.lang.String COMP_TYPE_PREFIX
See Also:
Constant Field Values

ZUL_JSF_NS

protected static java.lang.String ZUL_JSF_NS

JSF_HTML_NS

protected static java.lang.String JSF_HTML_NS

JSF_CORE_NS

protected static java.lang.String JSF_CORE_NS

JSF_CORE_PREFIX

protected static java.lang.String JSF_CORE_PREFIX
Constructor Detail

AbstractTag

protected AbstractTag(java.lang.String typeName)
constructor.

Parameters:
typeName - a type name with will be concatenate a COMP_TYPE_PREFIX,return at getComponentType(),
Method Detail

setIf

public void setIf(java.lang.String ifcond)
Sets the if condition.


setUnless

public void setUnless(java.lang.String unless)

getDoStartValue

protected int getDoStartValue()
                       throws javax.servlet.jsp.JspException
Override method, called by UIComponentTag. return SKIP_BODY if component shouldn't crate, or EVAL_BODY_BUFFERED otherwise

Overrides:
getDoStartValue in class javax.faces.webapp.UIComponentClassicTagBase
Returns:
SKIP_BODY or EVAL_BODY_BUFFERED
Throws:
javax.servlet.jsp.JspException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.faces.webapp.UIComponentTag

setProperties

protected void setProperties(javax.faces.component.UIComponent comp)
Override method, set properties of ZULJSF Component

Overrides:
setProperties in class javax.faces.webapp.UIComponentTag

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in class javax.faces.webapp.UIComponentTagBase

getRendererType

public java.lang.String getRendererType()
Specified by:
getRendererType in class javax.faces.webapp.UIComponentTagBase

isSkipBody

protected boolean isSkipBody()
check should this tag skip the body content.


doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Override method, set String of BodyContent into instance of ZULJSF Component which associated to this Tag.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.faces.webapp.UIComponentClassicTagBase
Throws:
javax.servlet.jsp.JspException
See Also:
AbstractComponent


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.