|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.cc.framework.taglib.base.ImageTag
Tag handler for the image
Tag.
The tag generates an HTML-image element.
The image tag can also be used in conjunction with
other tags of the framework. The surrounding tag is
responsible in this case for the display of the image.
Thus, the image is not directly written into the HTML-page.
The tag-handler of the surrounding tag must implement the
com.cc.framework.taglib.ImageContainerTag Interface.
Field Summary | |
private java.lang.Object |
directValue
A direct set value |
private ImageMap |
imagemap
The name of the image map. |
private ImageModelImp |
model
The image model |
private java.lang.String |
name
The name of the bean containing our underlying property. |
private java.lang.String |
property
The name of the property. |
private static long |
serialVersionUID
Serial Version UID |
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()
Constructor for ImageTag |
Method Summary | |
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.Object |
getDirectValue()
Returns a direct set value |
protected ImageModelImp |
getImage()
Returns the image model |
protected java.lang.Object |
lookupBean()
Retrieves the bean which holds the Display Data or Control Instance |
void |
release()
|
protected void |
releaseImage()
Releases the image model |
void |
setAlt(java.lang.String alt)
Sets the text to display if the image can't be displayed. |
void |
setHeight(java.lang.String height)
Sets the height of the image |
void |
setImagemap(java.lang.String mapName)
Specifies the name of an image map which must be saved in the request. |
void |
setName(java.lang.String name)
Specifies the name of the Java-Bean. |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setProperty(java.lang.String property)
Sets the Property-Attribute |
void |
setResource(java.lang.String resource)
Uses a image resource from the applications resource maps to setup the image |
void |
setSrc(java.lang.String src)
Sets the image src attribute |
void |
setStyle(java.lang.String style)
An HTML-style. |
void |
setStyleClass(java.lang.String styleClass)
The HTML-class attribute. |
void |
setStyleId(java.lang.String styleId)
The HTML-id attribute. |
void |
setTooltip(java.lang.String tooltip)
Sets a tooltip text for this image |
void |
setValue(java.lang.String value)
Sets the direct value for this image. |
void |
setWidth(java.lang.String width)
Sets the image width |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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 |
Field Detail |
private static final long serialVersionUID
private ImageModelImp model
private java.lang.Object directValue
private java.lang.String name
private java.lang.String property
private ImageMap imagemap
Constructor Detail |
public ImageTag()
Method Detail |
protected ImageModelImp getImage()
protected void releaseImage()
public void release()
Tag.release()
public void setPageContext(javax.servlet.jsp.PageContext pc)
Tag.setPageContext(PageContext pc)
protected java.lang.Object lookupBean() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- Is thrown when the bean could
not be foundpublic int doEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Tag.doEndTag()
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Tag.doStartTag()
public void setValue(java.lang.String value)
property
attribute
value
- The image valuepublic java.lang.Object getDirectValue()
public void setName(java.lang.String name)
name
- Name of the Beanpublic void setProperty(java.lang.String property) throws javax.servlet.jsp.JspException
property
- The Property-Attribute
javax.servlet.jsp.JspException
public void setImagemap(java.lang.String mapName) throws javax.servlet.jsp.JspException
mapName
- The ImageMap to assign
javax.servlet.jsp.JspException
- If the ImageMap can not be foundpublic void setTooltip(java.lang.String tooltip)
tooltip
- Tooltip textpublic void setAlt(java.lang.String alt)
alt
- String the alternative text.public void setHeight(java.lang.String height) throws javax.servlet.jsp.JspException
height
- the height of the image
javax.servlet.jsp.JspException
- If the argument can not be converted into an integer valuepublic void setSrc(java.lang.String src)
src
- src attributepublic void setResource(java.lang.String resource)
resource
- resource keypublic void setWidth(java.lang.String width) throws javax.servlet.jsp.JspException
width
- the image width
javax.servlet.jsp.JspException
- If the argument can not be converted into an integer valuepublic void setStyle(java.lang.String style)
style
- An HTML-stylepublic void setStyleId(java.lang.String styleId)
styleId
- The HTML-id attributepublic void setStyleClass(java.lang.String styleClass)
styleClass
- The HTML-class attribute
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |