org.zkoss.jsp.zul.impl
Class AbstractTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.zkoss.jsp.zul.impl.AbstractTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
Direct Known Subclasses:
AttributeTag, ComponentDefinitionTag, CustomAttributesTag, InitTag, LeafTag, RootTag, ZScriptTag

public class AbstractTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

The skeletal class for implementing the generic JSP tags.

Author:
tomyeh

Constructor Summary
AbstractTag()
           
 
Method Summary
 boolean getIf()
          Returns the if condition.
 boolean getUnless()
          Returns the unless condition.
 boolean isEffective()
          Returns whether this tag is effecive.
 void setIf(boolean ifcond)
          Sets the if condition.
 void setUnless(boolean unless)
          Sets the unless condition.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTag

public AbstractTag()
Method Detail

isEffective

public boolean isEffective()
Returns whether this tag is effecive. If false, this tag does nothing (as if not specified at all).


getIf

public boolean getIf()
Returns the if condition. If the if condition is false, this tag is ignored. If the unless condition (getUnless()) is true, this tag is ignored, too. Tags deriving from this class shall invoke isEffective() to know the result.

Default: true.


setIf

public void setIf(boolean ifcond)
Sets the if condition.


getUnless

public boolean getUnless()
Returns the unless condition. If the unless condition is true, this tag is ignored. If the if condition (getIf()) is true, this tag is ignored, too. Tags deriving from this class shall invoke isEffective() to know the result.

Default: false.


setUnless

public void setUnless(boolean unless)
Sets the unless condition.



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