com.googlecode.wicket.jquery.ui.widget.tooltip
Class TooltipBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
          extended by com.googlecode.wicket.jquery.core.JQueryBehavior
              extended by com.googlecode.wicket.jquery.ui.widget.tooltip.TooltipBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class TooltipBehavior
extends JQueryBehavior

Provides the jQuery tooltip behavior.
The TooltipBehavior 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

Field Summary
 
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector
 
Constructor Summary
TooltipBehavior()
          Default constructor
TooltipBehavior will apply on document
TooltipBehavior(Options options)
          Constructor
TooltipBehavior will apply on document
TooltipBehavior(String selector)
          Constructor
TooltipBehavior(String selector, Options options)
          Constructor
 
Method Summary
protected  String $()
           
 
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, getOption, on, on, renderHead, setOption, setOptions
 
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, toString
 
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TooltipBehavior

public TooltipBehavior()
Default constructor
TooltipBehavior will apply on document


TooltipBehavior

public TooltipBehavior(Options options)
Constructor
TooltipBehavior will apply on document

Parameters:
options - the Options

TooltipBehavior

public TooltipBehavior(String selector)
Constructor

Parameters:
selector - the html selector (ie: "#myId")

TooltipBehavior

public TooltipBehavior(String selector,
                       Options options)
Constructor

Parameters:
selector - the html selector (ie: "#myId")
options - the Options
Method Detail

$

protected String $()
Overrides:
$ in class JQueryBehavior


Copyright © 2013 7thWeb. All Rights Reserved.