public class JQueryUiTooltipContent
extends org.apache.wicket.behavior.Behavior
Behavior to place text/markup in the HTML attribute data-tooltip of
a component. This attribute is used by JQueryUiTooltip to obtain the content of tooltips.
If you specify a Component as the content provider, the data-tooltip
attribute will be set by a JavaScript function.| Constructor and Description |
|---|
JQueryUiTooltipContent(org.apache.wicket.Component contentComponent) |
JQueryUiTooltipContent(String content) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag) |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
static JQueryUiTooltipContent |
tooltipContent(org.apache.wicket.Component contentComponent)
Factory method.
|
static JQueryUiTooltipContent |
tooltipContent(String content)
Factory method.
|
public JQueryUiTooltipContent(String content)
content - the value of the data-tooltip attribute. Markup will not be escaped by
jQuery UI.public JQueryUiTooltipContent(org.apache.wicket.Component contentComponent)
contentComponent - the component, the value of the data-tooltip attribute will be obtained
frompublic static JQueryUiTooltipContent tooltipContent(String content)
content - the value of the data-tooltip attribute. Markup will not be escaped by
jQuery UI.JQueryUiTooltipContentpublic static JQueryUiTooltipContent tooltipContent(org.apache.wicket.Component contentComponent)
contentComponent - the component, the value of the data-tooltip attribute will be obtained
fromJQueryUiTooltipContentpublic void onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.behavior.Behaviorpublic void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.behavior.BehaviorCopyright © 2015. All rights reserved.