|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlBaseTag
Image
public class Image
Generates an image with the specified attributes. Image ignores its body content.
<netui:image src="friends.jpg" tagId="Friends" height="150" width="175" />
Field Summary |
---|
Fields inherited from class AbstractClassicTag |
---|
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT |
Fields inherited from class BodyTagSupport |
---|
bodyContent |
Fields inherited from class TagSupport |
---|
id, pageContext |
Fields inherited from interface BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
Image()
|
Method Summary | |
---|---|
void |
addParameter(String name,
Object value,
String facet)
Adds a URL parameter to the generated hyperlink. |
int |
doEndTag()
Render the end of the IMG tag. |
int |
doStartTag()
Render the beginning of the IMG tag. |
protected AbstractHtmlState |
getState()
This method will return the state associated with the tag. |
String |
getTagName()
Return the name of the Tag. |
protected void |
localRelease()
Release any acquired resources. |
void |
setAlign(String align)
Sets the property to specify where to align the image. |
void |
setAlt(String alt)
Sets the property to specify the alt text of the image. |
void |
setAttribute(String name,
String value,
String facet)
Base support for the attribute tag. |
void |
setBorder(String border)
Sets the border size around the image. |
void |
setHeight(String height)
Sets the image height. |
void |
setHspace(String hspace)
Sets the the horizontal spacing around the image. |
void |
setIsmap(String ismap)
Sets the server-side image map declaration. |
void |
setLocation(String location)
Sets the location hash to append to the url. |
void |
setLongdesc(String longdesc)
Sets the property to specify a link to the the long description to supplement the short description in the alt attribute. |
void |
setSrc(String src)
Sets the image source URI. |
void |
setUsemap(String usemap)
Sets the client-side image map declaration. |
void |
setVspace(String vspace)
Sets the vertical spacing around the image. |
void |
setWidth(String width)
Sets the image width. |
Methods inherited from class HtmlBaseTag |
---|
getJavaScriptAttribute, getOnClick, getTagId, renderDefaultNameAndId, renderNameAndId, setDir, setLang, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setStateAttribute, setStyle, setStyleClass, setTagId, setTitle |
Methods inherited from class BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public Image()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractClassicTag
protected AbstractHtmlState getState()
getState
in class HtmlBaseTag
AbstractHtmlState
class.public void setAttribute(String name, String value, String facet) throws JspException
src
attribute.
setAttribute
in interface IAttributeConsumer
setAttribute
in class HtmlBaseTag
name
- The name of the attribute. This value may not be null or the empty string.value
- The value of the attribute. This may contain an expression.facet
- The name of a facet to which the attribute will be applied. This is optional.
JspException
- A JspException may be thrown if there is an error setting the attribute.public void setAlign(String align)
align
- the image alignment.public void setAlt(String alt)
alt
- the image alignment.public void setLongdesc(String longdesc)
alt
attribute.
longdesc
- the longdesc.public void setBorder(String border)
border
- the border size.public void setHeight(String height)
height
- the height.public void setHspace(String hspace)
hspace
- the horizontal spacing.public void setIsmap(String ismap)
ismap
- the image map declaration.public void setLocation(String location)
location
- the location hash.public void setSrc(String src) throws JspException
src
- the source URI.
JspException
public void setUsemap(String usemap)
usemap
- the map declaration.public void setVspace(String vspace)
vspace
- the vertical spacing.public void setWidth(String width)
width
- the image width.public void addParameter(String name, Object value, String facet) throws JspException
addParameter
in interface IUrlParams
name
- the name of the parameter to be added.value
- the value of the parameter to be added (a String or String[]).facet
-
JspException
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredprotected void localRelease()
localRelease
in class HtmlBaseTag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |