com.sapportals.portal.prt.util.html

Class HtmlScript

java.lang.Object
  extended by com.sapportals.portal.prt.util.html.HtmlAttributeContainer
      extended by com.sapportals.portal.prt.util.html.HtmlBase
          extended by com.sapportals.portal.prt.util.html.HtmlContainer
              extended by com.sapportals.portal.prt.util.html.HtmlContainerIdentifiable
                  extended by 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


Field Summary
protected  boolean m_deferred
          IF the script is deferred
protected  String m_event
          Which event is catched
protected  String m_for
          For which object the script is dedicated.
protected  String m_language
          The language used byte the script.
protected  String m_src
          Source
protected  String m_type
          The type of the script
protected  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(String src)
           
 
Method Summary
 boolean getDeferred()
          Get the value of m_deferred.
 String getEvent()
          Get the value of m_event.
 String getFor()
          Get the value of m_for.
 String getLanguage()
          Get the value of m_language.
 String getSrc()
          Get the value of m_src.
 String getType()
          Get the value of m_type.
 void getUniqueHtmlCode(PrintWriter writer)
          Deprecated.  
 void getUniqueHtmlCode(StringBuffer strbuf)
           
 void getUniqueHtmlCode(Writer writer)
           
 String getUniqueId()
          Get the value of m_uniqueId.
 void outputAttributes(PrintWriter out)
          Deprecated.  
 void outputAttributes(StringBuffer strbuf)
           
 void outputAttributes(Writer out)
           
 HtmlScript setDeferred(boolean v)
          Set the value of m_deferred.
 HtmlScript setEvent(String v)
          Set the value of m_event.
 HtmlScript setFor(String v)
          Set the value of m_for.
 HtmlScript setLanguage(String v)
          Set the value of m_language.
 HtmlScript setSrc(String v)
          Set the value of m_src.
 HtmlScript setType(String v)
          Set the value of m_type.
 void setUniqueId(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, addIsThreadXHTMLCompliant, appendToAttribute, getAttributes, isThreadXHTMLCompliant, removeAttribute, removeIsThreadXHTMLCompliant
 
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 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 String m_language
The language used byte the script.


m_src

protected String m_src
Source


m_type

protected String m_type
The type of the script


m_for

protected String m_for
For which object the script is dedicated.


m_event

protected String m_event
Which event is catched


m_deferred

protected boolean m_deferred
IF the script is deferred

Constructor Detail

HtmlScript

public HtmlScript(String src)

HtmlScript

public HtmlScript()
Method Detail

outputAttributes

public void outputAttributes(StringBuffer strbuf)
Specified by:
outputAttributes in interface IHtmlAttributeContainer
Overrides:
outputAttributes in class HtmlAttributeContainer

outputAttributes

public void outputAttributes(PrintWriter out)
Deprecated. 

Specified by:
outputAttributes in interface IHtmlAttributeContainer
Overrides:
outputAttributes in class HtmlAttributeContainer

outputAttributes

public void outputAttributes(Writer out)
Specified by:
outputAttributes in interface IHtmlAttributeContainer
Overrides:
outputAttributes in class HtmlAttributeContainer

getUniqueId

public String getUniqueId()
Get the value of m_uniqueId.

Specified by:
getUniqueId in interface IHtmlUniqueObject
Returns:
Value of m_uniqueId.

setUniqueId

public void setUniqueId(String v)
Set the value of m_uniqueId.

Parameters:
v - Value to assign to m_uniqueId.

getUniqueHtmlCode

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

getUniqueHtmlCode

public void getUniqueHtmlCode(PrintWriter writer)
Deprecated. 

Specified by:
getUniqueHtmlCode in interface IHtmlUniqueObject

getUniqueHtmlCode

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

getLanguage

public String getLanguage()
Get the value of m_language.

Returns:
Value of m_language.

setLanguage

public HtmlScript setLanguage(String v)
Set the value of m_language.

Parameters:
v - Value to assign to m_language.

getSrc

public String getSrc()
Get the value of m_src.

Returns:
Value of m_src.

setSrc

public HtmlScript setSrc(String v)
Set the value of m_src.

Parameters:
v - Value to assign to m_src.

getType

public String getType()
Get the value of m_type.

Returns:
Value of m_type.

setType

public HtmlScript setType(String v)
Set the value of m_type.

Parameters:
v - Value to assign to m_type.

getFor

public String getFor()
Get the value of m_for.

Returns:
Value of m_for.

setFor

public HtmlScript setFor(String v)
Set the value of m_for.

Parameters:
v - Value to assign to m_for.

getEvent

public String getEvent()
Get the value of m_event.

Returns:
Value of m_event.

setEvent

public HtmlScript setEvent(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.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice