org.salespointframework.web.taglib
Class ImageTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.springframework.web.servlet.tags.RequestContextAwareTag
org.salespointframework.web.taglib.AbstractTag
org.salespointframework.web.taglib.ImageTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
public class ImageTag
- extends AbstractTag
A web tag rendering a given BufferedImage as data URI due to RFC2397.
- Author:
- Lars Kreisz, Uwe Schmidt
- See Also:
http://tools.ietf.org/html/rfc2397
,
AbstractTag
,
Serialized Form
Field Summary |
private java.lang.String |
alt
|
private static java.lang.String |
FORMAT
|
private java.lang.String |
height
|
private java.awt.image.BufferedImage |
image
|
private java.lang.String |
width
|
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Method Summary |
protected java.lang.StringBuffer |
getContent()
|
protected void |
reset()
resets all attributes |
void |
setAlt(java.lang.String alt)
setter for the text alternative |
void |
setHeight(java.lang.String height)
setter for the height |
void |
setImage(java.awt.image.BufferedImage image)
setter for the image to display |
void |
setWidth(java.lang.String width)
setter for the width |
Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
doCatch, doFinally, doStartTag, getRequestContext |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORMAT
private static final java.lang.String FORMAT
- See Also:
- Constant Field Values
image
private java.awt.image.BufferedImage image
alt
private java.lang.String alt
height
private java.lang.String height
width
private java.lang.String width
ImageTag
public ImageTag()
getContent
protected java.lang.StringBuffer getContent()
- Specified by:
getContent
in class AbstractTag
- Returns:
- The assembled code of the special tag.
setImage
public void setImage(java.awt.image.BufferedImage image)
- setter for the image to display
- Parameters:
image
-
setAlt
public void setAlt(java.lang.String alt)
- setter for the text alternative
- Parameters:
alt
-
setHeight
public void setHeight(java.lang.String height)
- setter for the height
- Parameters:
height
-
setWidth
public void setWidth(java.lang.String width)
- setter for the width
- Parameters:
width
-
reset
protected void reset()
- Description copied from class:
AbstractTag
- resets all attributes
- Specified by:
reset
in class AbstractTag