com.sapportals.portal.prt.util.html

Class HtmlContainer

java.lang.Object
  extended by com.sapportals.portal.prt.util.html.HtmlAttributeContainer
      extended by com.sapportals.portal.prt.util.html.HtmlBase
          extended by 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


Field Summary
protected  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(String aString)
          Add a String
 void destroy()
           
 int getElementCount()
          Returns the number of elements in the container and all sub elements
 Vector getHtmlElements()
          Get the value of m_htmlElements.
 void output(PrintWriter writer)
          Deprecated.  
 void output(StringBuffer strbuf)
          Method to get the Html Out[ut of the object The StringBuffer must be filled with HTML string content.
 void output(Writer writer)
          Method to get the Html Output of the object into a java.io.Writer
protected  void outputChildren(StringBuffer strbuf)
           
protected  void outputChildren(Writer writer)
           
protected  void outputEndTag(StringBuffer strbuf)
           
protected  void outputEndTag(Writer writer)
           
protected  void outputStartTag(StringBuffer strbuf)
           
protected  void outputStartTag(Writer writer)
           
 void removeAllElements()
           
 void removeElement(IHtmlOutputable element)
           
 void setHtmlElements(Vector v)
          Set the value of m_htmlElements.
 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, addIsThreadXHTMLCompliant, appendToAttribute, getAttributes, isThreadXHTMLCompliant, outputAttributes, outputAttributes, outputAttributes, removeAttribute, removeIsThreadXHTMLCompliant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_htmlElements

protected Vector m_htmlElements
Html elements in the container. Contains IHtmlBase

Constructor Detail

HtmlContainer

public HtmlContainer()
Method Detail

output

public void output(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(PrintWriter writer)
Deprecated. 

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


output

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


toString

public final String toString()
Specified by:
toString in interface IHtmlOutputable
Overrides:
toString in class Object

outputChildren

protected void outputChildren(StringBuffer strbuf)

outputStartTag

protected void outputStartTag(StringBuffer strbuf)

outputEndTag

protected void outputEndTag(StringBuffer strbuf)

outputChildren

protected void outputChildren(Writer writer)

outputStartTag

protected void outputStartTag(Writer writer)

outputEndTag

protected void outputEndTag(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 Vector getHtmlElements()
Get the value of m_htmlElements.

Returns:
Value of m_htmlElements.

setHtmlElements

public void setHtmlElements(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(String aString)
Add a String


removeElement

public void removeElement(IHtmlOutputable element)

removeAllElements

public void removeAllElements()

destroy

public void destroy()
Specified by:
destroy in interface IHtmlOutputable
Overrides:
destroy in class HtmlAttributeContainer
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice