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

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

public abstract class HtmlAttributeContainer
extends java.lang.Object
implements IHtmlAttributeContainer

HtmlAttributeContainer.java Created: Thu Mar 22 11:21:18 2001

Version:
$Revision: #3 $
$File:$ , $Revision:$ Last modified on $Date:$ by $Author:$ using $Change:$ Copyright (c) SAP Portals Europe GmbH 2001

Field Summary
protected static java.lang.String EQUALS_BEGIN
           
protected static java.lang.String EQUALS_END
           
protected  java.util.Hashtable m_attributes
          Html non standard properties in the container.
protected static java.lang.String SPACE
           
 
Constructor Summary
protected HtmlAttributeContainer()
           
 
Method Summary
 IHtmlAttributeContainer addAttribute(java.lang.String propName, java.lang.String value)
          Add a property to the container
 IHtmlAttributeContainer appendToAttribute(java.lang.String propName, java.lang.String value)
          Append the value to an existing/newly created property in the container
 void destroy()
           
 java.util.Hashtable getAttributes()
          Get the value of m_attributes.
 void outputAttributes(java.io.PrintWriter writer)
          Deprecated.  
 void outputAttributes(java.lang.StringBuffer strbuf)
           
 void outputAttributes(java.io.Writer writer)
           
 IHtmlAttributeContainer removeAttribute(java.lang.String propName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.portal.prt.util.html.IHtmlOutputable
getElementCount, output, output, output, toString
 
Methods inherited from interface com.sapportals.portal.prt.util.html.IHtmlBase
getTag, requireClosingTag, requireClosingTag, setTag
 

Field Detail

SPACE

protected static final java.lang.String SPACE

EQUALS_BEGIN

protected static final java.lang.String EQUALS_BEGIN

EQUALS_END

protected static final java.lang.String EQUALS_END

m_attributes

protected java.util.Hashtable m_attributes
Html non standard properties in the container.
Constructor Detail

HtmlAttributeContainer

protected HtmlAttributeContainer()
Method Detail

outputAttributes

public void outputAttributes(java.lang.StringBuffer strbuf)
Specified by:
outputAttributes in interface IHtmlAttributeContainer

outputAttributes

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

Specified by:
outputAttributes in interface IHtmlAttributeContainer
Following copied from interface: com.sapportals.portal.prt.util.html.IHtmlAttributeContainer
Parameters:
writer -  

outputAttributes

public void outputAttributes(java.io.Writer writer)
Specified by:
outputAttributes in interface IHtmlAttributeContainer

getAttributes

public java.util.Hashtable getAttributes()
Get the value of m_attributes.
Specified by:
getAttributes in interface IHtmlAttributeContainer
Returns:
Value of m_attributes.

appendToAttribute

public IHtmlAttributeContainer appendToAttribute(java.lang.String propName,
                                                 java.lang.String value)
Append the value to an existing/newly created property in the container
Specified by:
appendToAttribute in interface IHtmlAttributeContainer

addAttribute

public IHtmlAttributeContainer addAttribute(java.lang.String propName,
                                            java.lang.String value)
Description copied from interface: IHtmlAttributeContainer
Add a property to the container
Specified by:
addAttribute in interface IHtmlAttributeContainer

removeAttribute

public IHtmlAttributeContainer removeAttribute(java.lang.String propName)
Specified by:
removeAttribute in interface IHtmlAttributeContainer

destroy

public void destroy()
Specified by:
destroy in interface IHtmlOutputable