Class CustomTooltipBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
-
- com.googlecode.wicket.jquery.core.JQueryBehavior
-
- com.googlecode.wicket.jquery.ui.JQueryUIBehavior
-
- com.googlecode.wicket.jquery.ui.widget.tooltip.TooltipBehavior
-
- com.googlecode.wicket.jquery.ui.widget.tooltip.CustomTooltipBehavior
-
- All Implemented Interfaces:
JQueryDestroyListener.IDestroyable,Serializable,org.apache.wicket.IComponentAwareEventSink,org.apache.wicket.markup.html.IComponentAwareHeaderContributor,org.apache.wicket.util.io.IClusterable
public abstract class CustomTooltipBehavior extends TooltipBehavior
Provides the jQuery tooltip behavior, with custom content.
Warning: there is no selector supplied to the constructor, but it does not means that this behavior will be applied to the document, like for theTooltipBehavior. The selector will be retrieved from the component this behavior will be bound to, because this is a mandatory condition.- Since:
- 6.12.0
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.googlecode.wicket.jquery.ui.widget.tooltip.TooltipBehavior
METHOD
-
-
Constructor Summary
Constructors Constructor Description CustomTooltipBehavior()ConstructorCustomTooltipBehavior(com.googlecode.wicket.jquery.core.Options options)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String$()voidbind(org.apache.wicket.Component component)protected abstract org.apache.wicket.markup.html.WebMarkupContainernewContent(String markupId)Gets theWebMarkupContainerwhich will represent the tooltip contentprotected Stringquote(String content)Quotes (and escapes) the content
Warning: override with care-
Methods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior
destroy, onConfigure, onDestroy, widget, widget, widget, widget
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
-
-
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bindin classorg.apache.wicket.behavior.Behavior
-
newContent
protected abstract org.apache.wicket.markup.html.WebMarkupContainer newContent(String markupId)
Gets theWebMarkupContainerwhich will represent the tooltip content- Parameters:
markupId- the markup id to be used- Returns:
- a new
WebMarkupContainer
-
quote
protected String quote(String content)
Quotes (and escapes) the content
Warning: override with care- Parameters:
content- the content, likely html- Returns:
- the quoted content
-
$
protected String $()
- Overrides:
$in classTooltipBehavior
-
-