|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.portal.prt.util.html.HtmlAttributeContainer
|
+--com.sapportals.portal.prt.util.html.HtmlBase
|
+--com.sapportals.portal.prt.util.html.HtmlSinglePartElement
|
+--com.sapportals.portal.prt.util.html.HtmlImage
HtmlImage.java Created: Fri Oct 29 11:48:50 1999
| Inner Class Summary | |
static class |
HtmlImage.ImageAlign
The alignment of the image TOP|MIDDLE|BOTTOM |
| Field Summary | |
protected HtmlImage.ImageAlign |
m_alignment
The alignment of the image. |
protected java.lang.String |
m_alt
text to show if you don't show the picture |
protected java.lang.String |
m_border
The border around the picture |
protected java.lang.String |
m_height
How tall is the image |
protected java.lang.String |
m_hSpace
horizontal distance between the text and the image |
protected HtmlInlineScript |
m_onClick
What to do when the user 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_onMouseOver
What to do when the mouse is over. |
protected java.lang.String |
m_src
Source of the image |
protected java.lang.String |
m_vSpace
vertical distance between the text and the image |
protected java.lang.String |
m_width
how wide is the image |
| Fields inherited from class com.sapportals.portal.prt.util.html.HtmlSinglePartElement |
m_name |
| 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 | |
HtmlImage()
|
|
HtmlImage(java.lang.String src)
|
|
| Method Summary | |
void |
destroy()
|
HtmlImage.ImageAlign |
getAlignment()
Get the value of m_alignment. |
java.lang.String |
getAlt()
Get the value of m_alt. |
java.lang.String |
getBorder()
Get the value of m_border. |
java.lang.String |
getHeight()
Get the value of m_height. |
java.lang.String |
getHSpace()
Get the value of m_hSpace. |
HtmlInlineScript |
getOnClick()
Get the value of m_onClick. |
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 |
getOnMouseOver()
Get the value of m_onMouseOver. |
java.lang.String |
getSrc()
Get the value of m_src. |
java.lang.String |
getVSpace()
Get the value of m_vSpace. |
java.lang.String |
getWidth()
Get the value of m_width. |
void |
outputAttributes(java.io.PrintWriter out)
Deprecated. |
void |
outputAttributes(java.lang.StringBuffer strbuf)
|
void |
outputAttributes(java.io.Writer out)
|
HtmlImage |
setAlignment(HtmlImage.ImageAlign v)
Set the value of m_alignment. |
HtmlImage |
setAlt(java.lang.String v)
Set the value of m_alt. |
HtmlImage |
setBorder(int v)
|
HtmlImage |
setBorder(java.lang.String v)
Set the value of m_border. |
void |
setClass(java.lang.String element_class)
Set the element class for Cascading Style Sheets. |
HtmlImage |
setHeight(java.lang.String v)
Set the value of m_height. |
HtmlImage |
setHSpace(java.lang.String v)
Set the value of m_hSpace. |
void |
setID(java.lang.String id)
Set the element id for Cascading Style Sheets. |
IHtmlEventListener |
setOnClick(HtmlInlineScript v)
Set the value of m_onClick. |
IHtmlEventListener |
setOnKeyDown(HtmlInlineScript v)
Set the value of m_onKeyDown. |
IHtmlEventListener |
setOnKeyPress(HtmlInlineScript v)
Set the value of m_onKeyPress. |
IHtmlEventListener |
setOnKeyUp(HtmlInlineScript v)
Set the value of m_onKeyUp. |
IHtmlEventListener |
setOnMouseOver(HtmlInlineScript v)
Set the value of m_onMouseOver. |
HtmlImage |
setSrc(java.lang.String v)
Set the value of m_src. |
HtmlImage |
setVSpace(java.lang.String v)
Set the value of m_vSpace. |
HtmlImage |
setWidth(java.lang.String v)
Set the value of m_width. |
| Methods inherited from class com.sapportals.portal.prt.util.html.HtmlSinglePartElement |
getElementCount, getName, output, output, output, setName, toString |
| Methods inherited from class com.sapportals.portal.prt.util.html.HtmlBase |
getTag, hasTag, requireClosingTag, requireClosingTag, 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 |
| Field Detail |
protected java.lang.String m_src
protected HtmlImage.ImageAlign m_alignment
protected java.lang.String m_width
protected java.lang.String m_height
protected java.lang.String m_alt
protected java.lang.String m_hSpace
protected java.lang.String m_vSpace
protected java.lang.String m_border
protected HtmlInlineScript m_onKeyPress
protected HtmlInlineScript m_onKeyDown
protected HtmlInlineScript m_onKeyUp
protected HtmlInlineScript m_onClick
protected HtmlInlineScript m_onMouseOver
| Constructor Detail |
public HtmlImage()
public HtmlImage(java.lang.String src)
| Method Detail |
public void outputAttributes(java.lang.StringBuffer strbuf)
outputAttributes in class HtmlAttributeContainerpublic void outputAttributes(java.io.PrintWriter out)
outputAttributes in class HtmlAttributeContainercom.sapportals.portal.prt.util.html.IHtmlAttributeContainerwriter - public void outputAttributes(java.io.Writer out)
outputAttributes in class HtmlAttributeContainerpublic void setID(java.lang.String id)
setID in interface IHtmlIdentifiablepublic void setClass(java.lang.String element_class)
setClass in interface IHtmlIdentifiablesetClass in class HtmlBasepublic java.lang.String getSrc()
public HtmlImage setSrc(java.lang.String v)
v - Value to assign to m_src.public HtmlImage.ImageAlign getAlignment()
public HtmlImage setAlignment(HtmlImage.ImageAlign v)
v - Value to assign to m_alignment.public java.lang.String getWidth()
public HtmlImage setWidth(java.lang.String v)
v - Value to assign to m_width.public java.lang.String getHeight()
public HtmlImage setHeight(java.lang.String v)
v - Value to assign to m_height.public java.lang.String getAlt()
public HtmlImage setAlt(java.lang.String v)
v - Value to assign to m_alt.public java.lang.String getHSpace()
public HtmlImage setHSpace(java.lang.String v)
v - Value to assign to m_hSpace.public java.lang.String getVSpace()
public HtmlImage setVSpace(java.lang.String v)
v - Value to assign to m_vSpace.public java.lang.String getBorder()
public HtmlImage setBorder(java.lang.String v)
v - Value to assign to m_border.public HtmlImage setBorder(int v)
public HtmlInlineScript getOnKeyPress()
getOnKeyPress in interface IHtmlEventListenerpublic IHtmlEventListener setOnKeyPress(HtmlInlineScript v)
setOnKeyPress in interface IHtmlEventListenerv - Value to assign to m_onKeyPress.public HtmlInlineScript getOnKeyDown()
getOnKeyDown in interface IHtmlEventListenerpublic IHtmlEventListener setOnKeyDown(HtmlInlineScript v)
setOnKeyDown in interface IHtmlEventListenerv - Value to assign to m_onKeyDown.public HtmlInlineScript getOnKeyUp()
getOnKeyUp in interface IHtmlEventListenerpublic IHtmlEventListener setOnKeyUp(HtmlInlineScript v)
setOnKeyUp in interface IHtmlEventListenerv - Value to assign to m_onKeyUp.public HtmlInlineScript getOnClick()
getOnClick in interface IHtmlEventListenerpublic IHtmlEventListener setOnClick(HtmlInlineScript v)
setOnClick in interface IHtmlEventListenerv - Value to assign to m_onClick.public HtmlInlineScript getOnMouseOver()
getOnMouseOver in interface IHtmlEventListenerpublic IHtmlEventListener setOnMouseOver(HtmlInlineScript v)
setOnMouseOver in interface IHtmlEventListenerv - Value to assign to m_onMouseOver.public void destroy()
destroy in class HtmlAttributeContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||