|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
nl.gx.webmanager.taglib.ImageTag
public class ImageTag
Implements the wm:image tag.
Creates an Image object from its url.
Example of usage:
< wm:image var="photo" url="http://www.gx.nl/images/picture.jpg" alternativeText="a picture" />
${image.htmlTag}
The example above creates an Image object for www.gx.nl/images/picture.jpg storing "a picture"
as value to be used for the 'alt="..."' attribute of the HTML img tag.
| Constructor Summary | |
|---|---|
ImageTag()
|
|
| Method Summary | |
|---|---|
void |
doTag()
|
protected java.lang.String |
getAlign()
Return the alignment value to use in the 'align=�...�' attribute of the HTML img tag. |
protected java.lang.String |
getAlternativeText()
Return the alternative text to use in the 'alt=�...�' attribute of the HTML img tag. |
protected java.lang.String |
getUrl()
Return the url where the image can be found. |
protected java.lang.String |
getVar()
Return the JSP variable to store the result in. |
void |
setAlign(java.lang.String align)
Sets the alignment value to use in the 'align=�...�' attribute of the HTML img tag. |
void |
setAlternativeText(java.lang.String alternativeText)
Specificies the alternative text to use in the 'alt=�...�' attribute of the HTML img tag. |
void |
setUrl(java.lang.String url)
Specifies the url where the image can be found. |
void |
setVar(java.lang.String var)
Specifies the JSP variable to store the result in. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageTag()
| Method Detail |
|---|
public void setUrl(java.lang.String url)
url - the url where the image can be foundprotected java.lang.String getUrl()
public void setVar(java.lang.String var)
var - the name of the JSP variable to store the result inprotected java.lang.String getVar()
public void setAlign(java.lang.String align)
align - alignment of the image.protected java.lang.String getAlign()
public void setAlternativeText(java.lang.String alternativeText)
alternativeText - text used for the alt attribute.protected java.lang.String getAlternativeText()
public void doTag()
throws javax.servlet.jsp.JspException
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupportjavax.servlet.jsp.JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||