com.sapportals.portal.prt.util.html
Class HtmlScriptManager
java.lang.Object
|
+--com.sapportals.portal.prt.util.html.HtmlScriptManager
- All Implemented Interfaces:
- IHtmlOutputable
- public class HtmlScriptManager
- extends java.lang.Object
- implements IHtmlOutputable
This class can manage HtmlInlineScriptItem to avoid repeats
Created: Fri Nov 12 17:29:07 1999
- Version:
- $Revision: #3 $
|
Method Summary |
void |
destroy()
|
int |
getElementCount()
Returns the number of elements in the container and all sub elements |
HtmlInlineScriptItem |
getScript(java.lang.String name)
|
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 |
putScript(java.lang.String name,
HtmlInlineScriptItem script)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_allScripts
protected java.util.Hashtable m_allScripts
HtmlScriptManager
public HtmlScriptManager()
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.
- Specified by:
output in interface IHtmlOutputable
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
- Specified by:
output in interface IHtmlOutputable
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
- Specified by:
output in interface IHtmlOutputable
toString
public final java.lang.String toString()
- Specified by:
toString in interface IHtmlOutputable- Overrides:
toString in class java.lang.Object
getElementCount
public int getElementCount()
- Returns the number of elements in the container and all sub elements
- Specified by:
getElementCount in interface IHtmlOutputable
- Returns:
- number of elements + sub elements
putScript
public void putScript(java.lang.String name,
HtmlInlineScriptItem script)
getScript
public HtmlInlineScriptItem getScript(java.lang.String name)
destroy
public void destroy()
- Specified by:
destroy in interface IHtmlOutputable