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

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.HtmlScript
All Implemented Interfaces:
IHtmlAttributeContainer, IHtmlBase, IHtmlIdentifiable, IHtmlOutputable, IHtmlUniqueObject

public class HtmlScript
extends HtmlContainerIdentifiable
implements IHtmlUniqueObject

HtmlScript.java Created: Thu Nov 04 14:46:14 1999

Version:
$Revision: #3 $

Field Summary
protected  boolean m_deferred
          IF the script is deferred
protected  java.lang.String m_event
          Which event is catched
protected  java.lang.String m_for
          For which object the script is dedicated.
protected  java.lang.String m_language
          The language used byte the script.
protected  java.lang.String m_src
          Source
protected  java.lang.String m_type
          The type of the script
protected  java.lang.String m_uniqueId
          The unique identifier of the script.
 
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
HtmlScript()
           
HtmlScript(java.lang.String src)
           
 
Method Summary
 boolean getDeferred()
          Get the value of m_deferred.
 java.lang.String getEvent()
          Get the value of m_event.
 java.lang.String getFor()
          Get the value of m_for.
 java.lang.String getLanguage()
          Get the value of m_language.
 java.lang.String getSrc()
          Get the value of m_src.
 java.lang.String getType()
          Get the value of m_type.
 void getUniqueHtmlCode(java.io.PrintWriter writer)
          Deprecated.  
 void getUniqueHtmlCode(java.lang.StringBuffer strbuf)
           
 void getUniqueHtmlCode(java.io.Writer writer)
           
 java.lang.String getUniqueId()
          Get the value of m_uniqueId.
 void outputAttributes(java.io.PrintWriter out)
          Deprecated.  
 void outputAttributes(java.lang.StringBuffer strbuf)
           
 void outputAttributes(java.io.Writer out)
           
 HtmlScript setDeferred(boolean v)
          Set the value of m_deferred.
 HtmlScript setEvent(java.lang.String v)
          Set the value of m_event.
 HtmlScript setFor(java.lang.String v)
          Set the value of m_for.
 HtmlScript setLanguage(java.lang.String v)
          Set the value of m_language.
 HtmlScript setSrc(java.lang.String v)
          Set the value of m_src.
 HtmlScript setType(java.lang.String v)
          Set the value of m_type.
 void setUniqueId(java.lang.String v)
          Set the value of m_uniqueId.
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlContainerIdentifiable
destroy, setID
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlContainer
addElement, addElement, getElementCount, getHtmlElements, output, output, output, 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, 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.IHtmlOutputable
destroy, getElementCount, output, output, output, toString
 
Methods inherited from interface com.sapportals.portal.prt.util.html.IHtmlIdentifiable
setClass
 

Field Detail

m_uniqueId

protected java.lang.String m_uniqueId
The unique identifier of the script. This is either the src property or gets the value set with the SET method

m_language

protected java.lang.String m_language
The language used byte the script.

m_src

protected java.lang.String m_src
Source

m_type

protected java.lang.String m_type
The type of the script

m_for

protected java.lang.String m_for
For which object the script is dedicated.

m_event

protected java.lang.String m_event
Which event is catched

m_deferred

protected boolean m_deferred
IF the script is deferred
Constructor Detail

HtmlScript

public HtmlScript(java.lang.String src)

HtmlScript

public HtmlScript()
Method Detail

outputAttributes

public void outputAttributes(java.lang.StringBuffer strbuf)
Overrides:
outputAttributes in class HtmlAttributeContainer

outputAttributes

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

Overrides:
outputAttributes in class HtmlAttributeContainer
Following copied from interface: com.sapportals.portal.prt.util.html.IHtmlAttributeContainer
Parameters:
writer -  

outputAttributes

public void outputAttributes(java.io.Writer out)
Overrides:
outputAttributes in class HtmlAttributeContainer

getUniqueId

public java.lang.String getUniqueId()
Get the value of m_uniqueId.
Specified by:
getUniqueId in interface IHtmlUniqueObject
Returns:
Value of m_uniqueId.

setUniqueId

public void setUniqueId(java.lang.String v)
Set the value of m_uniqueId.
Parameters:
v - Value to assign to m_uniqueId.

getUniqueHtmlCode

public void getUniqueHtmlCode(java.lang.StringBuffer strbuf)
Specified by:
getUniqueHtmlCode in interface IHtmlUniqueObject

getUniqueHtmlCode

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

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

getUniqueHtmlCode

public void getUniqueHtmlCode(java.io.Writer writer)
Specified by:
getUniqueHtmlCode in interface IHtmlUniqueObject

getLanguage

public java.lang.String getLanguage()
Get the value of m_language.
Returns:
Value of m_language.

setLanguage

public HtmlScript setLanguage(java.lang.String v)
Set the value of m_language.
Parameters:
v - Value to assign to m_language.

getSrc

public java.lang.String getSrc()
Get the value of m_src.
Returns:
Value of m_src.

setSrc

public HtmlScript setSrc(java.lang.String v)
Set the value of m_src.
Parameters:
v - Value to assign to m_src.

getType

public java.lang.String getType()
Get the value of m_type.
Returns:
Value of m_type.

setType

public HtmlScript setType(java.lang.String v)
Set the value of m_type.
Parameters:
v - Value to assign to m_type.

getFor

public java.lang.String getFor()
Get the value of m_for.
Returns:
Value of m_for.

setFor

public HtmlScript setFor(java.lang.String v)
Set the value of m_for.
Parameters:
v - Value to assign to m_for.

getEvent

public java.lang.String getEvent()
Get the value of m_event.
Returns:
Value of m_event.

setEvent

public HtmlScript setEvent(java.lang.String v)
Set the value of m_event.
Parameters:
v - Value to assign to m_event.

getDeferred

public boolean getDeferred()
Get the value of m_deferred.
Returns:
Value of m_deferred.

setDeferred

public HtmlScript setDeferred(boolean v)
Set the value of m_deferred.
Parameters:
v - Value to assign to m_deferred.