Package 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. Reason: there are too many HTML extended tags available and developers might choose to use them.
How to use:
- First, extends a class from
AbstractComponent
and implements this interface - 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
getDynamicProperties, 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.
-
-