|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.apache.struts.taglib.html.BaseHandlerTag org.apache.struts.taglib.html.ImgTag
public class ImgTag
Generate an IMG tag to the specified image URI.
TODO:
Field Summary | |
---|---|
protected String |
action
The module-relative action (beginning with a slash) which will be used as the source for this image. |
protected String |
align
The property to specify where to align the image. |
protected String |
border
The border size around the image. |
protected String |
height
The image height. |
protected String |
hspace
The horizontal spacing around the image. |
protected String |
imageName
The image name for named images. |
protected String |
ismap
Server-side image map declaration. |
protected static MessageResources |
messages
The message resources for this package. |
protected String |
module
The module prefix (beginning with a slash) which will be used to find the action for this link. |
protected String |
name
The JSP bean name for query parameters. |
protected String |
page
The module-relative path, starting with a slash character, of the image to be displayed by this rendered tag. |
protected String |
pageKey
The message resources key under which we should look up the page attribute for this generated tag, if any. |
protected String |
paramId
In situations where an image is dynamically generated (such as to create a chart graph), this specifies the single-parameter request parameter name to generate. |
protected String |
paramName
The single-parameter JSP bean name. |
protected String |
paramProperty
The single-parameter JSP bean property. |
protected String |
paramScope
The single-parameter JSP bean scope. |
protected String |
property
The JSP bean property name for query parameters. |
protected String |
scope
The scope of the bean specified by the name property, if any. |
protected String |
src
The image source URI. |
protected String |
srcKey
The message resources key under which we should look up the src attribute for this generated tag, if any. |
protected boolean |
useLocalEncoding
|
protected String |
usemap
Client-side image map declaration. |
protected String |
vspace
The vertical spacing around the image. |
protected String |
width
The image width. |
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
---|
accesskey, doDisabled, doReadonly, indexed, tabindex |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
ImgTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Render the end of the IMG tag. |
int |
doStartTag()
Render the beginning of the IMG tag. |
String |
getAction()
|
String |
getAlign()
|
String |
getBorder()
|
String |
getHeight()
|
String |
getHspace()
|
String |
getImageName()
|
String |
getIsmap()
|
String |
getModule()
|
String |
getName()
|
String |
getPage()
|
String |
getPageKey()
|
String |
getParamId()
|
String |
getParamName()
|
String |
getParamProperty()
|
String |
getParamScope()
|
String |
getProperty()
|
String |
getScope()
|
String |
getSrc()
|
String |
getSrcKey()
|
String |
getUsemap()
|
String |
getVspace()
|
String |
getWidth()
|
boolean |
isUseLocalEncoding()
|
void |
release()
Release any acquired resources. |
void |
setAction(String action)
|
void |
setAlign(String align)
|
void |
setBorder(String border)
|
void |
setHeight(String height)
|
void |
setHspace(String hspace)
|
void |
setImageName(String imageName)
|
void |
setIsmap(String ismap)
|
void |
setModule(String module)
|
void |
setName(String name)
|
void |
setPage(String page)
|
void |
setPageKey(String pageKey)
|
void |
setParamId(String paramId)
|
void |
setParamName(String paramName)
|
void |
setParamProperty(String paramProperty)
|
void |
setParamScope(String paramScope)
|
void |
setProperty(String property)
|
void |
setScope(String scope)
|
void |
setSrc(String src)
|
void |
setSrcKey(String srcKey)
|
void |
setUseLocalEncoding(boolean b)
|
void |
setUsemap(String usemap)
|
void |
setVspace(String vspace)
|
void |
setWidth(String width)
|
protected String |
src()
Return the base source URL that will be rendered in the src property for this generated element, or
null if there is no such URL. |
protected String |
url(String url)
Return the specified src URL, modified as necessary with optional request parameters. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected static MessageResources messages
protected String align
protected String border
protected String height
protected String hspace
protected String imageName
protected String ismap
protected String name
protected String page
protected String pageKey
page
attribute for this generated tag, if any.
protected String action
protected String module
protected String paramId
protected String paramName
protected String paramProperty
protected String paramScope
protected String property
protected String scope
protected String src
protected String srcKey
src
attribute for this generated tag, if any.
protected String usemap
protected String vspace
protected String width
protected boolean useLocalEncoding
Constructor Detail |
---|
public ImgTag()
Method Detail |
---|
public String getAlign()
public void setAlign(String align)
public String getBorder()
public void setBorder(String border)
public String getHeight()
public void setHeight(String height)
public String getHspace()
public void setHspace(String hspace)
public String getImageName()
public void setImageName(String imageName)
public String getIsmap()
public void setIsmap(String ismap)
public String getName()
public void setName(String name)
public String getPage()
public void setPage(String page)
public String getPageKey()
public void setPageKey(String pageKey)
public String getAction()
public void setAction(String action)
public String getModule()
public void setModule(String module)
public String getParamId()
public void setParamId(String paramId)
public String getParamName()
public void setParamName(String paramName)
public String getParamProperty()
public void setParamProperty(String paramProperty)
public String getParamScope()
public void setParamScope(String paramScope)
public String getProperty()
public void setProperty(String property)
public String getScope()
public void setScope(String scope)
public String getSrc()
public void setSrc(String src)
public String getSrcKey()
public void setSrcKey(String srcKey)
public String getUsemap()
public void setUsemap(String usemap)
public String getVspace()
public void setVspace(String vspace)
public String getWidth()
public void setWidth(String width)
public boolean isUseLocalEncoding()
public void setUseLocalEncoding(boolean b)
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 occurredpublic void release()
release
in interface Tag
release
in class BaseHandlerTag
protected String src() throws JspException
src
property for this generated element, or
null
if there is no such URL.
JspException
- if an error occursprotected String url(String url) throws JspException
url
- The URL to be modified (or null if this url will not be
used)
JspException
- if an error occurs preparing the URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |