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

java.lang.Object
  |
  +--com.sapportals.portal.prt.util.html.HtmlAttributeContainer
        |
        +--com.sapportals.portal.prt.util.html.HtmlBase
              |
              +--com.sapportals.portal.prt.util.html.HtmlContainer
                    |
                    +--com.sapportals.portal.prt.util.html.HtmlContainerIdentifiable
                          |
                          +--com.sapportals.portal.prt.util.html.HtmlContainerIdentifiableWithUniqueManager
All Implemented Interfaces:
IHtmlAttributeContainer, IHtmlBase, IHtmlIdentifiable, IHtmlOutputable
Direct Known Subclasses:
Html, HtmlApplet, HtmlBody, HtmlContainerIdentifiableWithEvents, HtmlHead, HtmlObject

public abstract class HtmlContainerIdentifiableWithUniqueManager
extends HtmlContainerIdentifiable

Allows to support unique objects in the container Created: Thu Nov 18 14:54:15 1999


Inner Class Summary
 class HtmlContainerIdentifiableWithUniqueManager.HtmlUniqueObjectFacade
           
 
Field Summary
protected  java.util.Vector m_uniqueObjectList
           
protected  java.util.Hashtable m_uniqueObjects
           
 
Fields inherited from class com.sapportals.portal.prt.util.html.HtmlContainer
m_htmlElements
 
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
HtmlContainerIdentifiableWithUniqueManager()
           
 
Method Summary
 void addUniqueObject(IHtmlUniqueObject obj)
           
 void addUniqueObject(java.lang.String key, IHtmlOutputable obj)
           
 void destroy()
           
 int getElementCount()
          Returns the number of elements in the container and all sub elements
 IHtmlUniqueObject getUniqueObject(java.lang.String objId)
          return the object according to its key.
 java.util.Hashtable getUniqueObjects()
          return the uniqueObjects variable.
 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
 void removeAllUniqueObjects()
          Removes all the unique objects from the container
 void removeUniqueObject(java.lang.String uniqueid)
           
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlContainerIdentifiable
setID
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlContainer
addElement, addElement, getHtmlElements, outputChildren, outputChildren, outputEndTag, outputEndTag, outputStartTag, outputStartTag, removeAllElements, removeElement, setHtmlElements, 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
 
Methods inherited from interface com.sapportals.portal.prt.util.html.IHtmlIdentifiable
setClass
 

Field Detail

m_uniqueObjects

protected java.util.Hashtable m_uniqueObjects

m_uniqueObjectList

protected java.util.Vector m_uniqueObjectList
Constructor Detail

HtmlContainerIdentifiableWithUniqueManager

public HtmlContainerIdentifiableWithUniqueManager()
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.
Overrides:
output in class HtmlContainer

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
Overrides:
output in class HtmlContainer

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
Overrides:
output in class HtmlContainer

getElementCount

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

addUniqueObject

public void addUniqueObject(IHtmlUniqueObject obj)

addUniqueObject

public void addUniqueObject(java.lang.String key,
                            IHtmlOutputable obj)

removeUniqueObject

public void removeUniqueObject(java.lang.String uniqueid)

getUniqueObjects

public java.util.Hashtable getUniqueObjects()
return the uniqueObjects variable.

getUniqueObject

public IHtmlUniqueObject getUniqueObject(java.lang.String objId)
return the object according to its key.

removeAllUniqueObjects

public void removeAllUniqueObjects()
Removes all the unique objects from the container

destroy

public void destroy()
Overrides:
destroy in class HtmlContainerIdentifiable