org.salespointframework.web.taglib
Class ImageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.springframework.web.servlet.tags.RequestContextAwareTag
          extended by org.salespointframework.web.taglib.AbstractTag
              extended by 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
 
Fields inherited from class org.salespointframework.web.taglib.AbstractTag
id, log, styleName
 
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
 
Constructor Summary
ImageTag()
           
 
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.salespointframework.web.taglib.AbstractTag
doEndTag, doStartTagInternal, render, setId, setStyleName
 
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
 

Constructor Detail

ImageTag

public ImageTag()
Method Detail

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