Class 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.
    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 
      Modifier and Type Field Description
      static String METHOD  
      • Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

        method, options, selector
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String $()  
      • 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
      • Methods inherited from class org.apache.wicket.behavior.Behavior

        afterRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
    • 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 - the Options
      • 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 - the Options
    • Method Detail

      • $

        protected String $()
        Overrides:
        $ in class com.googlecode.wicket.jquery.core.JQueryBehavior