atg.droplet
Class ComplexTag

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by atg.droplet.Tag
          extended by atg.droplet.ComplexTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
EventSender

public class ComplexTag
extends Tag

This class both serves as the base class for any tags that contain content and also can be used to dynamically render any HTML object.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
ComplexTag()
           
 
Method Summary
 void addContent(javax.servlet.Servlet pServlet)
          Adds a Servlet to the content for this tag.
 void addContent(java.lang.String pContent)
          Adds a String to the content for this tag.
 void addContent(Tag pTag)
          Adds a Tag to the content for this tag.
 java.util.Vector getContent()
          Returns the value of Content property.
 void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes)
          Renders the tag and its content
protected  void serviceContent(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes)
          This method just renders the content.
 void setContent(java.util.Vector pContent)
          Sets the Content Vector.
 
Methods inherited from class atg.droplet.Tag
getAttribute, getAttributes, getTagName, service, serviceAttributes, setAttribute, setAttributes, setTagName
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ComplexTag

public ComplexTag()
Method Detail

setContent

public void setContent(java.util.Vector pContent)
Sets the Content Vector. This is a Vector of Strings, Servlets, and Tags that are to be rendered as the content for this tag. Generally users add content to the Content Vector using the addContent method.

See Also:
addContent(javax.servlet.Servlet)

getContent

public java.util.Vector getContent()
Returns the value of Content property. This is a Vector of String, Servlets and Tags that are rendered as the content for this tag.


addContent

public void addContent(javax.servlet.Servlet pServlet)
Adds a Servlet to the content for this tag. This Servlet will be serviced when the content for the Tag is rendered


addContent

public void addContent(Tag pTag)
Adds a Tag to the content for this tag. This Tag will be rendered when the content for the parent Tag is rendered


addContent

public void addContent(java.lang.String pContent)
Adds a String to the content for this tag. This string will rendered when the content for this parent Tag is rendered.


service

public void service(DynamoHttpServletRequest pReq,
                    DynamoHttpServletResponse pRes)
             throws javax.servlet.ServletException,
                    java.io.IOException
Renders the tag and its content

Overrides:
service in class Tag
Throws:
javax.servlet.ServletException
java.io.IOException

serviceContent

protected void serviceContent(DynamoHttpServletRequest pReq,
                              DynamoHttpServletResponse pRes)
                       throws javax.servlet.ServletException,
                              java.io.IOException
This method just renders the content. Subclasses can call this method after they have rendered their start tag

Throws:
javax.servlet.ServletException
java.io.IOException