|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.ImageTag
public class ImageTag
An JSP Tag to generate an IMG element.
| Field Summary |
|---|
| Fields inherited from class org.deltava.taglib.html.ElementTag |
|---|
_data, _out |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| 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 | |
|---|---|
ImageTag()
Creates a new Image element tag. |
|
| Method Summary | |
|---|---|
int |
doEndTag()
Generates this image's HTML. |
void |
setBorder(int border)
Sets the border of ths image. |
void |
setCaption(String caption)
Sets the alternate caption for this image. |
void |
setSrc(String url)
Sets the source of this image. |
void |
setX(int width)
Sets the width of ths image. |
void |
setY(int height)
Sets the height of ths image. |
| Methods inherited from class org.deltava.taglib.html.ElementTag |
|---|
getName, release, setClassName, setID, setNumericAttr, setPageContext, setStyle |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
| 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 int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspException - if an error occurspublic void setX(int width)
width - the width of the image in pixelsElementTag.setNumericAttr(String, int, int)public void setY(int height)
height - the height of the image in pixelsElementTag.setNumericAttr(String, int, int)public void setBorder(int border)
border - the border of the image in pixelsElementTag.setNumericAttr(String, int, int)public void setSrc(String url)
url - the location of the imagepublic void setCaption(String caption)
caption - the caption for this mage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||