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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_htmlElements
protected java.util.Vector m_htmlElements
- Html elements in the container. Contains IHtmlBase
HtmlContainer
public HtmlContainer()
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