|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
de.laures.cewolf.taglib.tags.CewolfBodyTag
de.laures.cewolf.taglib.html.AbstractHTMLBaseTag
de.laures.cewolf.taglib.html.HTMLImgTag
de.laures.cewolf.taglib.tags.ChartImgTag
This is the tag implementation of the <img> tag. This tag inputs the proper <img> tag into the HTML page delivered to the client. It therefor determines the chart ID which will be used by the rendering servlet to retrieve the chart.
ChartImage,
Serialized Form| Field Summary | |
protected java.lang.String |
sessionKey
|
| Fields inherited from class de.laures.cewolf.taglib.html.HTMLImgTag |
align, alt, border, forceSessionId, height, hSpace, ismap, longDesc, removeAfterRender, src, useMap, vSpace, width |
| Fields inherited from class de.laures.cewolf.taglib.html.AbstractHTMLBaseTag |
clazz, dir, id, lang, onclick, ondbclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, style, title, UNDEFINED_FLOAT, UNDEFINED_INT, UNDEFINED_STR |
| Fields inherited from class de.laures.cewolf.taglib.tags.CewolfBodyTag |
log |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
| Fields inherited from interface de.laures.cewolf.taglib.TaglibConstants |
ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_SOUTH, ANCHOR_WEST, TOOLTIPS_ENABLED_KEY |
| Fields inherited from interface de.laures.cewolf.WebConstants |
AMPERSAND, HEIGHT_PARAM, IMG_PARAM, MIME_JPEG, MIME_PNG, MIME_SVG, REMOVE_AFTER_RENDERING, SESSIONID_KEY, WIDTH_PARAM |
| 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 | |
ChartImgTag()
|
|
| Method Summary | |
static java.lang.String |
buildImgURL(java.lang.String renderer,
javax.servlet.jsp.PageContext pageContext,
java.lang.String sessionKey,
int width,
int height,
java.lang.String mimeType,
boolean forceSessionId,
boolean removeAfterRender)
Build the image url |
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
void |
enableMapping()
Method setUsemap. |
static java.lang.String |
fixAbsolutURL(java.lang.String url,
javax.servlet.http.HttpServletRequest request)
Fix an absolute url given as attribute by adding the full application url path to it. |
static java.lang.String |
fixAbsolutURL(java.lang.String url,
javax.servlet.jsp.PageContext pageContext)
Same as the other fixAbsolutURL, convinience only. |
java.lang.String |
getChartid()
|
java.lang.String |
getChartId()
Method getChartId. |
int |
getHeight()
|
protected java.lang.String |
getImgURL()
To enable further server side scriptings on JSP output the session ID is always encoded into the image URL even if cookies are enabled on the client side. |
protected java.lang.String |
getMimeType()
|
protected java.lang.String |
getRenderer()
|
java.lang.Object |
getRenderingInfo()
Method getImageKey. |
protected java.lang.String |
getTagName()
|
int |
getTimeout()
|
int |
getWidth()
|
protected void |
reset()
|
void |
setChartid(java.lang.String id)
|
void |
setMime(java.lang.String mimeType)
Sets the mimeType. |
void |
setRenderer(java.lang.String renderer)
|
void |
setTimeout(int timeout)
|
void |
writeAttributes(java.io.Writer wr)
|
| Methods inherited from class de.laures.cewolf.taglib.html.HTMLImgTag |
hasBody, isForceSessionId, isRemoveAfterRender, setAlign, setAlt, setBorder, setForceSessionId, setHeight, setHspace, setIsmap, setLongdesc, setRemoveAfterRender, setSrc, setUsemap, setVspace, setWidth, wellFormed |
| Methods inherited from class de.laures.cewolf.taglib.html.AbstractHTMLBaseTag |
appendAttributeDeclaration, appendAttributeDeclaration, appendAttributeDeclaration, setClass, setDir, setHtmltitle, setLang, setOnclick, setOndbclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setStyle |
| Methods inherited from class de.laures.cewolf.taglib.tags.CewolfBodyTag |
doAfterEndTag |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, 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 java.lang.String sessionKey
| Constructor Detail |
public ChartImgTag()
| Method Detail |
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class AbstractHTMLBaseTagjavax.servlet.jsp.JspException
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractHTMLBaseTagjavax.servlet.jsp.JspException
public static java.lang.String fixAbsolutURL(java.lang.String url,
javax.servlet.http.HttpServletRequest request)
url - The url to fixrequest - The http request
public static java.lang.String fixAbsolutURL(java.lang.String url,
javax.servlet.jsp.PageContext pageContext)
url - The url to fixpageContext - The page context
public static java.lang.String buildImgURL(java.lang.String renderer,
javax.servlet.jsp.PageContext pageContext,
java.lang.String sessionKey,
int width,
int height,
java.lang.String mimeType,
boolean forceSessionId,
boolean removeAfterRender)
renderer - the url of the rendererpageContext - Page contextsessionKey - The session key for the image stored.width - The widthheight - The heightmimeType - the mime-type (for example png) of it
protected java.lang.String getImgURL()
public java.lang.Object getRenderingInfo()
throws CewolfException
Mapped
getRenderingInfo in interface MappedCewolfExceptionprotected java.lang.String getMimeType()
protected void reset()
reset in class HTMLImgTagpublic void enableMapping()
Mapped
enableMapping in interface Mappedpublic java.lang.String getChartId()
CewolfRootTag
getChartId in interface CewolfRootTagpublic void setChartid(java.lang.String id)
public java.lang.String getChartid()
public void setRenderer(java.lang.String renderer)
protected java.lang.String getRenderer()
public int getWidth()
public int getHeight()
public void setMime(java.lang.String mimeType)
mimeType - The mimeType to setprotected java.lang.String getTagName()
getTagName in class HTMLImgTagAbstractHTMLBaseTag.getTagName()public void writeAttributes(java.io.Writer wr)
writeAttributes in class HTMLImgTagAbstractHTMLBaseTag.writeAttributes(Writer)public int getTimeout()
public void setTimeout(int timeout)
timeout - The timeout to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||