org.japano.pagenode.legacy
Class LegacyTagAdapter

java.lang.Object
  extended by org.japano.PageNode
      extended by 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 $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Nested Class Summary
 
Nested classes/interfaces inherited from class org.japano.PageNode
PageNode.Output
 
Field Summary
protected  javax.servlet.jsp.tagext.JspTag tag
           
 
Fields inherited from class org.japano.PageNode
children, context, EMPTY, nodeId, parent
 
Constructor Summary
LegacyTagAdapter(java.lang.Class wrappedClass)
           
 
Method Summary
 void createSimpleTagInstance()
          Creates a new simple tag instance if the wrapped tag is a SimpleTag.
 void generate(Buffer out)
          Generates this node The base implementation just calls PageNode.generateChildren(Buffer)
 void generateSimpleTag(Buffer out)
           
 void generateTag(Buffer out)
           
 javax.servlet.jsp.tagext.JspTag getWrappedTag()
           
 void init()
          Initializes the node.
 void setDynamicAttribute(java.lang.String str, java.lang.String str1, java.lang.Object obj)
           
 
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
 

Field Detail

tag

protected javax.servlet.jsp.tagext.JspTag tag
Constructor Detail

LegacyTagAdapter

public LegacyTagAdapter(java.lang.Class wrappedClass)
Method Detail

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