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.StringttAltprotected java.lang.StringttBodyprotected java.lang.StringttClassprotected java.lang.StringttGlpprotected java.lang.String[]ttGlpParamsprotected java.lang.StringttIconprotected java.lang.StringttInlineprotected java.lang.StringttJspprotected java.lang.StringttTitle 
- 
Constructor Summary
Constructors Constructor Description Tooltip() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTooltip()Returns the HTML representing a tooltipvoidsetIcon(java.lang.String icon)Set a custom tooltip iconvoidsetIcon(java.lang.String icon, java.lang.String alt)voidsetInlineBody(java.lang.String body)Set the value of an inline content for a given tooltipvoidsetLongdesc(java.lang.String uri)Set the location where to retrieve the tooltip contentvoidsetProperty(java.lang.String glp, java.lang.String[] params)Set the property to retrieve using AJAX requestvoidsetSprite(java.lang.String sprite)Set a custom sprite icon (override icon)voidsetTitle(java.lang.String title)Set a custom title attribute.voidsetTooltipClass(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
 
 - 
 
 -