|
||||||||||
| 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
com.jalios.jcms.taglib.TooltipTag
public class TooltipTag
This tag prints a small tooltip icons that displays inline or ajax content
| Nested Class Summary | |
|---|---|
static class |
TooltipTag.Tooltip
|
| Field Summary | |
|---|---|
protected String |
bodyText
|
protected String[] |
glpParams
|
protected String |
icon
|
protected String |
longdesc
|
protected String |
property
|
static String |
REVISION
|
protected String |
sprite
|
static String |
TOOLTIP_CLASS
|
static String |
TOOLTIP_CLASS_INLINE
|
static String |
TOOLTIP_URI
|
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface com.jalios.util.JaliosConstants |
|---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
| 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 | |
|---|---|
TooltipTag()
|
|
| Method Summary | |
|---|---|
protected void |
clean()
|
int |
doAfterBody()
|
int |
doEndTag()
|
String |
getBodyText()
Returns the value previously sets |
String |
getIcon()
Returns the value of the icon attribute previously sets |
String |
getLongdesc()
Returns the value of the longdesc attribute previously sets |
static String |
getLongdescProperty(String ttGlp,
String[] ttParams,
boolean wrap)
Convenient method use to generate longdesc tooltip property on an HTML tag. |
String[] |
getParams()
Returns the value of the parameters associated with the given property |
String |
getProperty()
Returns the value of the property previously sets |
String |
getSprite()
Returns the value of the sprite attribute previously sets |
static String |
getTooltipForLongdesc(String ttLongdesc)
Convenient method use to generate tooltip IMG tag for a given longdesc. |
static String |
getTooltipForLongdesc(String ttLongdesc,
String ttIcon)
Convenient method use to generate tooltip IMG tag for a given longdesc. |
static String |
getTooltipForProperty(String ttGlp,
String[] ttParams)
Convenient method use to generate tooltip IMG tag for a given property. |
static String |
getTooltipForProperty(String ttGlp,
String[] ttParams,
String ttIcon,
String ttClass)
Convenient method use to generate tooltip IMG tag for a given property. |
static String |
getTooltipForText(String ttBody)
Convenient method use to generate tooltip IMG tag for a given body text. |
static String |
getTooltipForText(String ttBody,
String ttIcon)
Convenient method use to generate tooltip IMG tag for a given body text. |
static String |
getTooltipForTitle(String ttTitle)
Convenient method use to generate tooltip IMG tag for a given title. |
static String |
getTooltipForTitle(String ttTitle,
String ttIcon)
Convenient method use to generate tooltip IMG tag for a given title. |
static String |
getTooltipForTitle(String ttTitle,
String ttIcon,
String ttClass)
Convenient method use to generate tooltip IMG tag for a given title. |
void |
setBodyText(String bodyText)
Set the value used to fill tooltip content using inline DOM. |
void |
setIcon(String icon)
Set the value of the icon attribute used to display tooltip. |
void |
setLongdesc(String longdesc)
Set the value of the longdesc attribute used to fill tooltip content using AJAX request. |
void |
setParams(String[] pparams)
Set the associated parameters of a given property |
void |
setProperty(String property)
Set the value of the property used to fill tooltip content using AJAX request on dedicated longdesc uri. |
void |
setSprite(String sprite)
Set the value of the sprite attribute used to display tooltip. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, resetCustomAttributes, 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 |
|---|
public static final String REVISION
public static final String TOOLTIP_URI
public static final String TOOLTIP_CLASS
public static final String TOOLTIP_CLASS_INLINE
protected String bodyText
protected String property
protected String[] glpParams
protected String longdesc
protected String icon
protected String sprite
| Constructor Detail |
|---|
public TooltipTag()
| Method Detail |
|---|
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.BodyTagdoAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionprotected void clean()
public static String getLongdescProperty(String ttGlp,
String[] ttParams,
boolean wrap)
ttGlp - the jcms propertyttParams - the property's paramswrap - boolean true if the result should be wrap in a longdesc attribute
public static String getTooltipForProperty(String ttGlp,
String[] ttParams)
ttGlp - the jcms propertyttParams - the property's params
public static String getTooltipForProperty(String ttGlp,
String[] ttParams,
String ttIcon,
String ttClass)
ttGlp - the jcms propertyttParams - the property's paramsttIcon - a custom icon
public static String getTooltipForText(String ttBody)
ttBody - the inline body text
public static String getTooltipForText(String ttBody,
String ttIcon)
ttBody - the inline body textttIcon - a custom icon
public static String getTooltipForLongdesc(String ttLongdesc)
ttLongdesc - the longdesc
public static String getTooltipForLongdesc(String ttLongdesc,
String ttIcon)
ttLongdesc - the longdescttIcon - a custom icon
public static String getTooltipForTitle(String ttTitle)
ttTitle - the title
public static String getTooltipForTitle(String ttTitle,
String ttIcon)
ttTitle - the titlettIcon - a custom icon
public static String getTooltipForTitle(String ttTitle,
String ttIcon,
String ttClass)
ttTitle - the titlettIcon - a custom icon
public String getBodyText()
public void setBodyText(String bodyText)
bodyText - String body textpublic String getProperty()
public void setProperty(String property)
property - String propertypublic String[] getParams()
public void setParams(String[] pparams)
pparams - String[] of parameterspublic String getLongdesc()
public void setLongdesc(String longdesc)
longdesc - String longdescpublic String getIcon()
public void setIcon(String icon)
icon - String icon uripublic String getSprite()
public void setSprite(String sprite)
sprite - String sprite value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||