|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.cc.framework.taglib.util.ImageMapTag
Tag-Handler for the ImageMap Tag.
| Field Summary | |
private java.lang.String |
base
The base directory for all the images |
private AbstractImageMap |
map
Instance of the ImageMap |
private java.lang.String |
name
Name to store the ImageMap in the Page-Kontext |
private RunAt |
runat
Specifies if the image map should be exposed as a java script object to the client browser (RunAt.CLIENT) |
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 | |
ImageMapTag()
Constructor |
|
| Method Summary | |
void |
addImage(java.lang.String key,
ImageModel image)
Adds an image to the ImageMap |
protected void |
doCreateClientScript()
Creates the client side javascript object for the image map which is used for the clientside tree. |
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getBase()
|
RunAt |
getRunAt()
This property specifies whether, for the imagemap should be exposed as a java scripting object |
void |
release()
|
void |
setBase(java.lang.String base)
Sets the resource base directory |
void |
setName(java.lang.String name)
Sets the name |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setRunat(java.lang.String runat)
This attribute specifies whether, for the imagemap should be exposed as a java scripting object |
| 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 AbstractImageMap map
private java.lang.String name
private java.lang.String base
private RunAt runat
| Constructor Detail |
public ImageMapTag()
| Method Detail |
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext in interface javax.servlet.jsp.tagext.TagTag.setPageContext(PageContext pc)public void release()
release in interface javax.servlet.jsp.tagext.TagTag.release()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionTag.doStartTag()
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionTag.doEndTag()
protected void doCreateClientScript()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - A generic exception known by the JSP engine
public void addImage(java.lang.String key,
ImageModel image)
key - Keyimage - The image to addpublic void setName(java.lang.String name)
name - The namepublic void setBase(java.lang.String base)
WebResourceTag
setBase in interface WebResourceTagbase - Base DirectoryWebResourceTag.setBase(java.lang.String)public java.lang.String getBase()
public void setRunat(java.lang.String runat)
throws javax.servlet.jsp.JspException
runat - Specifies whether the imagemap
should be exposed as a javascript object
javax.servlet.jsp.JspException - If the argument can't be converted
to an object of type com.cc.framework.ui.RunAtRunAtpublic RunAt getRunAt()
RunAt.CLIENT if a java script
object should be created
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||