Class TooltipBehavior
- 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
-
- All Implemented Interfaces:
JQueryDestroyListener.IDestroyable
,Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
CustomTooltipBehavior
public class TooltipBehavior extends JQueryUIBehavior
Provides the jQuery tooltip behavior.
TheTooltipBehavior
apply to a page and therefore needs to be added once:
Java:
public class MyPage extends WebPage { public DefaultAutoCompletePage() { // Tooltip Behavior // this.add(new TooltipBehavior()); } }
HTML:<input wicket:id="myinput" type="text" title="enter your criteria here"></input>
- Since:
- 1.4.0, 6.2.0
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TooltipBehavior()
Default constructor
TooltipBehavior
will apply on documentTooltipBehavior(com.googlecode.wicket.jquery.core.Options options)
Constructor
TooltipBehavior
will apply on documentTooltipBehavior(String selector)
ConstructorTooltipBehavior(String selector, com.googlecode.wicket.jquery.core.Options options)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
$()
-
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
-
-
-
-
Field Detail
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TooltipBehavior
public TooltipBehavior()
Default constructor
TooltipBehavior
will apply on document
-
TooltipBehavior
public TooltipBehavior(com.googlecode.wicket.jquery.core.Options options)
Constructor
TooltipBehavior
will apply on document- Parameters:
options
- theOptions
-
TooltipBehavior
public TooltipBehavior(String selector)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")
-
TooltipBehavior
public TooltipBehavior(String selector, com.googlecode.wicket.jquery.core.Options options)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")options
- theOptions
-
-
Method Detail
-
$
protected String $()
- Overrides:
$
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
-