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

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
                                |
                                +--com.sapportals.portal.prt.util.html.HtmlContainerIdentifiableWithEvents
All Implemented Interfaces:
IHtmlAttributeContainer, IHtmlBase, IHtmlEventListener, IHtmlIdentifiable, IHtmlOutputable
Direct Known Subclasses:
HtmlAnchor, HtmlDiv, HtmlFormItem, HtmlSpan, HtmlTable

public abstract class HtmlContainerIdentifiableWithEvents
extends HtmlContainerIdentifiableWithUniqueManager
implements IHtmlEventListener

This class is an html container which can identified and can react on events. Created: Thu Oct 28 10:53:59 1999

Version:
$Revision: #3 $

Inner classes inherited from class com.sapportals.portal.prt.util.html.HtmlContainerIdentifiableWithUniqueManager
HtmlContainerIdentifiableWithUniqueManager.HtmlUniqueObjectFacade
 
Field Summary
protected  HtmlInlineScript m_onClick
          What to do when the user click on the form item.
protected  HtmlInlineScript m_onDoubleClick
          What to do when the user double click on the form item.
protected  HtmlInlineScript m_onKeyDown
          What to do when a key is down.
protected  HtmlInlineScript m_onKeyPress
          What to do when a key is pressed.
protected  HtmlInlineScript m_onKeyUp
          What to do when a key is up.
protected  HtmlInlineScript m_onMouseOut
          What to do when the mouse is out.
protected  HtmlInlineScript m_onMouseOver
          What to do when the mouse is over.
 
Fields inherited from class com.sapportals.portal.prt.util.html.HtmlContainerIdentifiableWithUniqueManager
m_uniqueObjectList, 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
HtmlContainerIdentifiableWithEvents()
           
 
Method Summary
 HtmlInlineScript getOnClick()
          Get the value of m_onClick.
 HtmlInlineScript getOnDoubleClick()
          Get the value of m_onDoubleClick.
 HtmlInlineScript getOnKeyDown()
          Get the value of m_onKeyDown.
 HtmlInlineScript getOnKeyPress()
          Get the value of m_onKeyPress.
 HtmlInlineScript getOnKeyUp()
          Get the value of m_onKeyUp.
 HtmlInlineScript getOnMouseOut()
          Get the value of m_onMouseOut.
 HtmlInlineScript getOnMouseOver()
          Get the value of m_onMouseOver.
 void outputAttributes(java.io.PrintWriter out)
          Deprecated.  
 void outputAttributes(java.lang.StringBuffer strbuf)
           
 void outputAttributes(java.io.Writer out)
           
 IHtmlEventListener setOnClick(HtmlInlineScript v)
          Set the value of m_onClick.
 void setOnClick(java.lang.String script)
          The onclick event occurs when the pointing device button is clicked over an element.
 void setOnDblClick(java.lang.String script)
          The ondblclick event occurs when the pointing device button is double clicked over an element.
 IHtmlEventListener setOnDoubleClick(HtmlInlineScript v)
          Set the value of m_onClick.
 IHtmlEventListener setOnKeyDown(HtmlInlineScript v)
          Set the value of m_onKeyDown.
 void setOnKeyDown(java.lang.String script)
          The onkeydown event occurs when a key is pressed down over an element.
 IHtmlEventListener setOnKeyPress(HtmlInlineScript v)
          Set the value of m_onKeyPress.
 void setOnKeyPress(java.lang.String script)
          The onkeypress event occurs when a key is pressed and released over an element.
 IHtmlEventListener setOnKeyUp(HtmlInlineScript v)
          Set the value of m_onKeyUp.
 void setOnKeyUp(java.lang.String script)
          The onkeyup event occurs when a key is released over an element.
 void setOnMouseDown(java.lang.String script)
          The onmousedown event occurs when the pointing device button is pressed over an element.
 void setOnMouseMove(java.lang.String script)
          The onmousemove event occurs when the pointing device is moved while it is over an element.
 IHtmlEventListener setOnMouseOut(HtmlInlineScript v)
          Set the value of m_onMouseOut.
 void setOnMouseOut(java.lang.String script)
          The onmouseout event occurs when the pointing device is moved away from an element.
 IHtmlEventListener setOnMouseOver(HtmlInlineScript v)
          Set the value of m_onMouseOver.
 void setOnMouseOver(java.lang.String script)
          The onmouseover event occurs when the pointing device is moved onto an element.
 void setOnMouseUp(java.lang.String script)
          The onmouseup event occurs when the pointing device button is released over an element.
 
Methods inherited from class com.sapportals.portal.prt.util.html.HtmlContainerIdentifiableWithUniqueManager
addUniqueObject, addUniqueObject, destroy, getElementCount, getUniqueObject, getUniqueObjects, output, output, output, removeAllUniqueObjects, removeUniqueObject
 
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, 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_onKeyPress

protected HtmlInlineScript m_onKeyPress
What to do when a key is pressed.

m_onKeyDown

protected HtmlInlineScript m_onKeyDown
What to do when a key is down.

m_onKeyUp

protected HtmlInlineScript m_onKeyUp
What to do when a key is up.

m_onClick

protected HtmlInlineScript m_onClick
What to do when the user click on the form item.

m_onDoubleClick

protected HtmlInlineScript m_onDoubleClick
What to do when the user double click on the form item.

m_onMouseOver

protected HtmlInlineScript m_onMouseOver
What to do when the mouse is over.

m_onMouseOut

protected HtmlInlineScript m_onMouseOut
What to do when the mouse is out.
Constructor Detail

HtmlContainerIdentifiableWithEvents

public HtmlContainerIdentifiableWithEvents()
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

getOnKeyPress

public HtmlInlineScript getOnKeyPress()
Get the value of m_onKeyPress.
Specified by:
getOnKeyPress in interface IHtmlEventListener
Returns:
Value of m_onKeyPress.

setOnKeyPress

public IHtmlEventListener setOnKeyPress(HtmlInlineScript v)
Set the value of m_onKeyPress.
Specified by:
setOnKeyPress in interface IHtmlEventListener
Parameters:
v - Value to assign to m_onKeyPress.

getOnKeyDown

public HtmlInlineScript getOnKeyDown()
Get the value of m_onKeyDown.
Specified by:
getOnKeyDown in interface IHtmlEventListener
Returns:
Value of m_onKeyDown.

setOnKeyDown

public IHtmlEventListener setOnKeyDown(HtmlInlineScript v)
Set the value of m_onKeyDown.
Specified by:
setOnKeyDown in interface IHtmlEventListener
Parameters:
v - Value to assign to m_onKeyDown.

getOnKeyUp

public HtmlInlineScript getOnKeyUp()
Get the value of m_onKeyUp.
Specified by:
getOnKeyUp in interface IHtmlEventListener
Returns:
Value of m_onKeyUp.

setOnKeyUp

public IHtmlEventListener setOnKeyUp(HtmlInlineScript v)
Set the value of m_onKeyUp.
Specified by:
setOnKeyUp in interface IHtmlEventListener
Parameters:
v - Value to assign to m_onKeyUp.

getOnClick

public HtmlInlineScript getOnClick()
Get the value of m_onClick.
Specified by:
getOnClick in interface IHtmlEventListener
Returns:
Value of m_onClick.

setOnClick

public IHtmlEventListener setOnClick(HtmlInlineScript v)
Set the value of m_onClick.
Specified by:
setOnClick in interface IHtmlEventListener
Parameters:
v - Value to assign to m_onClick.

getOnDoubleClick

public HtmlInlineScript getOnDoubleClick()
Get the value of m_onDoubleClick.
Returns:
Value of m_onm_onDoubleClickClick.

setOnDoubleClick

public IHtmlEventListener setOnDoubleClick(HtmlInlineScript v)
Set the value of m_onClick.
Parameters:
v - Value to assign to m_onDoubleClick.

getOnMouseOver

public HtmlInlineScript getOnMouseOver()
Get the value of m_onMouseOver.
Specified by:
getOnMouseOver in interface IHtmlEventListener
Returns:
Value of m_onMouseOver.

setOnMouseOver

public IHtmlEventListener setOnMouseOver(HtmlInlineScript v)
Set the value of m_onMouseOver.
Specified by:
setOnMouseOver in interface IHtmlEventListener
Parameters:
v - Value to assign to m_onMouseOver.

getOnMouseOut

public HtmlInlineScript getOnMouseOut()
Get the value of m_onMouseOut.
Returns:
Value of m_onMouseOut.

setOnMouseOut

public IHtmlEventListener setOnMouseOut(HtmlInlineScript v)
Set the value of m_onMouseOut.
Parameters:
v - Value to assign to m_onMouseOut.

setOnClick

public void setOnClick(java.lang.String script)
The onclick event occurs when the pointing device button is clicked over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnDblClick

public void setOnDblClick(java.lang.String script)
The ondblclick event occurs when the pointing device button is double clicked over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnMouseDown

public void setOnMouseDown(java.lang.String script)
The onmousedown event occurs when the pointing device button is pressed over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnMouseUp

public void setOnMouseUp(java.lang.String script)
The onmouseup event occurs when the pointing device button is released over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnMouseOver

public void setOnMouseOver(java.lang.String script)
The onmouseover event occurs when the pointing device is moved onto an element. This attribute may be used with most elements.
Parameters:
The - script

setOnMouseMove

public void setOnMouseMove(java.lang.String script)
The onmousemove event occurs when the pointing device is moved while it is over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnMouseOut

public void setOnMouseOut(java.lang.String script)
The onmouseout event occurs when the pointing device is moved away from an element. This attribute may be used with most elements.
Parameters:
The - script

setOnKeyPress

public void setOnKeyPress(java.lang.String script)
The onkeypress event occurs when a key is pressed and released over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnKeyDown

public void setOnKeyDown(java.lang.String script)
The onkeydown event occurs when a key is pressed down over an element. This attribute may be used with most elements.
Parameters:
The - script

setOnKeyUp

public void setOnKeyUp(java.lang.String script)
The onkeyup event occurs when a key is released over an element. This attribute may be used with most elements.
Parameters:
The - script