org.japano.pagenode.legacy
Class LegacyTagAdapter
java.lang.Object
org.japano.PageNode
org.japano.pagenode.legacy.LegacyTagAdapter
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.DynamicAttributes
public abstract class LegacyTagAdapter
- extends PageNode
- implements javax.servlet.jsp.tagext.DynamicAttributes
This is an adapter class between the japano page model and the traditional JSP model.
The wrapped tag can be a tag as well as an SimpleTag
.
- Version:
- $Id: LegacyTagAdapter.java,v 1.7 2006/01/02 02:27:51 fforw Exp $
- Author:
- Sven Helmberger ( sven dot helmberger at gmx dot de )
Field Summary |
protected javax.servlet.jsp.tagext.JspTag |
tag
|
Methods inherited from class org.japano.PageNode |
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, recInit, release, setChildren, setContext, setNodeId, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tag
protected javax.servlet.jsp.tagext.JspTag tag
LegacyTagAdapter
public LegacyTagAdapter(java.lang.Class wrappedClass)
init
public void init()
- Description copied from class:
PageNode
- Initializes the node. The init method is called after all nodes of the page are
constructed, linked and configured.
- Overrides:
init
in class PageNode
generate
public void generate(Buffer out)
- Description copied from class:
PageNode
- Generates this node
The base implementation just calls
PageNode.generateChildren(Buffer)
- Overrides:
generate
in class PageNode
generateSimpleTag
public void generateSimpleTag(Buffer out)
createSimpleTagInstance
public void createSimpleTagInstance()
- Creates a new simple tag instance if the wrapped tag is a SimpleTag.
The method is called by the container before the attributes are set.
generateTag
public void generateTag(Buffer out)
getWrappedTag
public javax.servlet.jsp.tagext.JspTag getWrappedTag()
setDynamicAttribute
public void setDynamicAttribute(java.lang.String str,
java.lang.String str1,
java.lang.Object obj)
- Specified by:
setDynamicAttribute
in interface javax.servlet.jsp.tagext.DynamicAttributes