|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
| Nested 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 String |
m_alt
text to show if you don't show the picture |
protected String |
m_border
The border around the picture |
protected String |
m_height
How tall is the image |
protected 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 String |
m_src
Source of the image |
protected String |
m_vSpace
vertical distance between the text and the image |
protected 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(String src)
|
|
| Method Summary | |
void |
destroy()
|
HtmlImage.ImageAlign |
getAlignment()
Get the value of m_alignment. |
String |
getAlt()
Get the value of m_alt. |
String |
getBorder()
Get the value of m_border. |
String |
getHeight()
Get the value of m_height. |
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. |
String |
getSrc()
Get the value of m_src. |
String |
getVSpace()
Get the value of m_vSpace. |
String |
getWidth()
Get the value of m_width. |
void |
outputAttributes(PrintWriter out)
Deprecated. |
void |
outputAttributes(StringBuffer strbuf)
|
void |
outputAttributes(Writer out)
|
HtmlImage |
setAlignment(HtmlImage.ImageAlign v)
Set the value of m_alignment. |
HtmlImage |
setAlt(String v)
Set the value of m_alt. |
HtmlImage |
setBorder(int v)
|
HtmlImage |
setBorder(String v)
Set the value of m_border. |
void |
setClass(String element_class)
Set the element class for Cascading Style Sheets. |
HtmlImage |
setHeight(String v)
Set the value of m_height. |
HtmlImage |
setHSpace(String v)
Set the value of m_hSpace. |
void |
setID(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(String v)
Set the value of m_src. |
HtmlImage |
setVSpace(String v)
Set the value of m_vSpace. |
HtmlImage |
setWidth(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 String m_src
protected HtmlImage.ImageAlign m_alignment
protected String m_width
protected String m_height
protected String m_alt
protected String m_hSpace
protected String m_vSpace
protected 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(String src)
| Method Detail |
public void outputAttributes(StringBuffer strbuf)
outputAttributes in interface IHtmlAttributeContaineroutputAttributes in class HtmlAttributeContainerpublic void outputAttributes(PrintWriter out)
outputAttributes in interface IHtmlAttributeContaineroutputAttributes in class HtmlAttributeContainerpublic void outputAttributes(Writer out)
outputAttributes in interface IHtmlAttributeContaineroutputAttributes in class HtmlAttributeContainerpublic void setID(String id)
setID in interface IHtmlIdentifiablepublic void setClass(String element_class)
setClass in interface IHtmlIdentifiablesetClass in class HtmlBasepublic String getSrc()
public HtmlImage setSrc(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 String getWidth()
public HtmlImage setWidth(String v)
v - Value to assign to m_width.public String getHeight()
public HtmlImage setHeight(String v)
v - Value to assign to m_height.public String getAlt()
public HtmlImage setAlt(String v)
v - Value to assign to m_alt.public String getHSpace()
public HtmlImage setHSpace(String v)
v - Value to assign to m_hSpace.public String getVSpace()
public HtmlImage setVSpace(String v)
v - Value to assign to m_vSpace.public String getBorder()
public HtmlImage setBorder(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 interface IHtmlOutputabledestroy in class HtmlAttributeContainer
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||