org.zkoss.zk.ui.ext
Interface DynamicTag

All Superinterfaces:
DynamicPropertied
All Known Implementing Classes:
HtmlNativeComponent, Raw, XmlNativeComponent

public interface DynamicTag
extends DynamicPropertied

Represents a component is used to represent a broad range of tags.

For example, org.zkoss.zhtml.Raw is used to generate any HTML tags that doesn't have the ZK counterpart. Rason: there are too many HTML extended tags available and developers might choose to use them.

How to use:

  1. First, extends a class from AbstractComponent and implements this interface
  2. Declares the class in lang.xml by enclosing it with <dynamic-tag>. Then, any tag that ZK doesn't understand, will use the class.

Author:
tomyeh

Method Summary
 boolean hasTag(java.lang.String tagname)
          Returns whether the specified tag is allowed.
 void setTag(java.lang.String tagname)
          Sets the tag name.
 
Methods inherited from interface org.zkoss.zk.ui.ext.DynamicPropertied
getDynamicProperty, hasDynamicProperty, setDynamicProperty
 

Method Detail

setTag

void setTag(java.lang.String tagname)
            throws WrongValueException
Sets the tag name.

Throws:
WrongValueException

hasTag

boolean hasTag(java.lang.String tagname)
Returns whether the specified tag is allowed.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo