Package com.jalios.jcms.taglib
Class TooltipTag.Tooltip
- java.lang.Object
-
- com.jalios.jcms.taglib.TooltipTag.Tooltip
-
- Enclosing class:
- TooltipTag
public static class TooltipTag.Tooltip extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
ttAlt
protected java.lang.String
ttBody
protected java.lang.String
ttClass
protected java.lang.String
ttGlp
protected java.lang.String[]
ttGlpParams
protected java.lang.String
ttIcon
protected java.lang.String
ttInline
protected java.lang.String
ttJsp
protected java.lang.String
ttTitle
-
Constructor Summary
Constructors Constructor Description Tooltip()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTooltip()
Returns the HTML representing a tooltipvoid
setIcon(java.lang.String icon)
Set a custom tooltip iconvoid
setIcon(java.lang.String icon, java.lang.String alt)
void
setInlineBody(java.lang.String body)
Set the value of an inline content for a given tooltipvoid
setLongdesc(java.lang.String uri)
Set the location where to retrieve the tooltip contentvoid
setProperty(java.lang.String glp, java.lang.String[] params)
Set the property to retrieve using AJAX requestvoid
setSprite(java.lang.String sprite)
Set a custom sprite icon (override icon)void
setTitle(java.lang.String title)
Set a custom title attribute.void
setTooltipClass(java.lang.String ttClass)
Set a custom tooltip class
-
-
-
Field Detail
-
ttClass
protected java.lang.String ttClass
-
ttInline
protected java.lang.String ttInline
-
ttIcon
protected java.lang.String ttIcon
-
ttJsp
protected java.lang.String ttJsp
-
ttGlp
protected java.lang.String ttGlp
-
ttGlpParams
protected java.lang.String[] ttGlpParams
-
ttBody
protected java.lang.String ttBody
-
ttTitle
protected java.lang.String ttTitle
-
ttAlt
protected java.lang.String ttAlt
-
-
Method Detail
-
getTooltip
public java.lang.String getTooltip()
Returns the HTML representing a tooltip- Returns:
- String the tooltip's html fragment
-
setProperty
public void setProperty(java.lang.String glp, java.lang.String[] params)
Set the property to retrieve using AJAX request- Parameters:
glp
- the language propertyparams
- glp properties
-
setLongdesc
public void setLongdesc(java.lang.String uri)
Set the location where to retrieve the tooltip content- Parameters:
uri
- the uri to the content (may contains querystring)
-
setInlineBody
public void setInlineBody(java.lang.String body)
Set the value of an inline content for a given tooltip- Parameters:
body
- the content of the tooltip set inline
-
setTitle
public void setTitle(java.lang.String title)
Set a custom title attribute. MUST be called before setLongdesc() to be cumulated with it.- Parameters:
title
- the title of the icon
-
setIcon
public void setIcon(java.lang.String icon)
Set a custom tooltip icon- Parameters:
icon
- the uri of the icon
-
setIcon
public void setIcon(java.lang.String icon, java.lang.String alt)
-
setSprite
public void setSprite(java.lang.String sprite)
Set a custom sprite icon (override icon)- Parameters:
sprite
- the sprite value
-
setTooltipClass
public void setTooltipClass(java.lang.String ttClass)
Set a custom tooltip class- Parameters:
ttClass
- the class of the tooltip
-
-