com.sapportals.portal.prt.util.html
Class HtmlContainer

java.lang.Object
  |
  +--com.sapportals.portal.prt.util.html.HtmlAttributeContainer
        |
        +--com.sapportals.portal.prt.util.html.HtmlBase
              |
              +--com.sapportals.portal.prt.util.html.HtmlContainer
All Implemented Interfaces:
IHtmlAttributeContainer, IHtmlBase, IHtmlOutputable
Direct Known Subclasses:
HtmlColGroup, HtmlContainerIdentifiable, HtmlFrame, HtmlInlineScript, HtmlStyle

public class HtmlContainer
extends HtmlBase

HtmlContainer.java Created: Thu Oct 28 10:53:59 1999

Version:
$Revision: #3 $

Field Summary
protected  java.util.Vector m_htmlElements
          Html elements in the container.
 
Fields inherited from class com.sapportals.portal.prt.util.html.HtmlBase
m_hasTag
 
Fields inherited from class com.sapportals.portal.prt.util.html.HtmlAttributeContainer
EQUALS_BEGIN, EQUALS_END, m_attributes, SPACE
 
Constructor Summary
HtmlContainer()
           
 
Method Summary
 HtmlContainer addElement(IHtmlOutputable element)
          Add a IHtmlOutputable as element.
 HtmlContainer addElement(java.lang.String aString)
          Add a String
 void destroy()
           
 int getElementCount()
          Returns the number of elements in the container and all sub elements
 java.util.Vector getHtmlElements()
          Get the value of m_htmlElements.
 void output(java.io.PrintWriter writer)
          Method to get the Html Output of the object into a PrintWriter
 void output(java.lang.StringBuffer strbuf)
          Method to get the Html Out[ut of the object The StringBuffer must be filled with HTML string content.
 void output(java.io.Writer writer)
          Method to get the Html Output of the object into a java.io.Writer
protected  void outputChildren(java.lang.StringBuffer strbuf)
           
protected  void outputChildren(java.io.Writer writer)
           
protected  void outputEndTag(java.lang.StringBuffer strbuf)
           
protected  void outputEndTag(java.io.Writer writer)
           
protected  void outputStartTag(java.lang.StringBuffer strbuf)
           
protected  void outputStartTag(java.io.Writer writer)
           
 void removeAllElements()
           
 void removeElement(IHtmlOutputable element)
           
 void setHtmlElements(java.util.Vector v)
          Set the value of m_htmlElements.
 java.lang.String toString()
           
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlBase
getTag, hasTag, requireClosingTag, requireClosingTag, setClass, setStyle, setTag
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlAttributeContainer
addAttribute, appendToAttribute, getAttributes, outputAttributes, outputAttributes, outputAttributes, removeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_htmlElements

protected java.util.Vector m_htmlElements
Html elements in the container. Contains IHtmlBase
Constructor Detail

HtmlContainer

public HtmlContainer()
Method Detail

output

public void output(java.lang.StringBuffer strbuf)
Description copied from interface: IHtmlOutputable
Method to get the Html Out[ut of the object The StringBuffer must be filled with HTML string content.

output

public void output(java.io.PrintWriter writer)
Deprecated.  

Description copied from interface: IHtmlOutputable
Method to get the Html Output of the object into a PrintWriter

output

public void output(java.io.Writer writer)
Description copied from interface: IHtmlOutputable
Method to get the Html Output of the object into a java.io.Writer

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

outputChildren

protected void outputChildren(java.lang.StringBuffer strbuf)

outputStartTag

protected void outputStartTag(java.lang.StringBuffer strbuf)

outputEndTag

protected void outputEndTag(java.lang.StringBuffer strbuf)

outputChildren

protected void outputChildren(java.io.Writer writer)

outputStartTag

protected void outputStartTag(java.io.Writer writer)

outputEndTag

protected void outputEndTag(java.io.Writer writer)

getElementCount

public int getElementCount()
Returns the number of elements in the container and all sub elements
Returns:
number of elements + sub elements

getHtmlElements

public java.util.Vector getHtmlElements()
Get the value of m_htmlElements.
Returns:
Value of m_htmlElements.

setHtmlElements

public void setHtmlElements(java.util.Vector v)
Set the value of m_htmlElements.
Parameters:
v - Value to assign to m_htmlElements.

addElement

public HtmlContainer addElement(IHtmlOutputable element)
Add a IHtmlOutputable as element.

addElement

public HtmlContainer addElement(java.lang.String aString)
Add a String

removeElement

public void removeElement(IHtmlOutputable element)

removeAllElements

public void removeAllElements()

destroy

public void destroy()
Overrides:
destroy in class HtmlAttributeContainer