Class JQueryUIBehavior

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
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:
AbstractSlider.SliderBehavior, AccordionBehavior, AutoCompleteBehavior, ButtonBehavior, CheckChoice.CheckChoiceBehavior, DatePickerBehavior, DialogBehavior, DraggableBehavior, DropDownChoiceBehavior, DroppableBehavior, JQueryEffectBehavior, MenuBehavior, PositionBehavior, ProgressBarBehavior, RadioChoice.RadioChoiceBehavior, ResizableBehavior, SelectableBehavior, SortableBehavior, SpinnerBehavior, TabsBehavior, TooltipBehavior

public class JQueryUIBehavior extends com.googlecode.wicket.jquery.core.JQueryBehavior implements JQueryDestroyListener.IDestroyable
Provides the base class for every jQuery behavior.
Author:
Sebastien Briquet - sebfz1
See Also:
  • Field Summary

    Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

    method, options, selector
  • Constructor Summary

    Constructors
    Constructor
    Description
    JQueryUIBehavior(String selector, String method)
    Constructor
    JQueryUIBehavior(String selector, String method, com.googlecode.wicket.jquery.core.Options options)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
    Removes the widget functionality completely.
    void
    onConfigure(org.apache.wicket.Component component)
     
    protected void
    onDestroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
    Called when the widget is about to be destroyed
    Gets the jQuery UI object
    protected String
    widget(String method)
    Gets the jQuery UI object
    static String
    widget(String selector, String method)
    Gets the jQuery UI widget
    static String
    widget(org.apache.wicket.Component component, String method)
    Gets the jQuery UI 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

    Methods inherited from class org.apache.wicket.behavior.Behavior

    afterRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JQueryUIBehavior

      public JQueryUIBehavior(String selector, String method)
      Constructor
      Parameters:
      selector - the html selector (ie: "#myId")
      method - the kendo-ui method
    • JQueryUIBehavior

      public JQueryUIBehavior(String selector, String method, com.googlecode.wicket.jquery.core.Options options)
      Constructor
      Parameters:
      selector - the html selector (ie: "#myId")
      method - the kendo-ui method
      options - the Options
  • Method Details

    • widget

      public String widget()
      Gets the jQuery UI object
      Returns:
      the jQuery UI object (if exists, 'undefined' otherwise)
    • widget

      protected String widget(String method)
      Gets the jQuery UI object
      Parameters:
      method - the jQuery UI method
      Returns:
      the jQuery UI object (if exists, 'undefined' otherwise)
    • widget

      public static String widget(String selector, String method)
      Gets the jQuery UI widget
      Parameters:
      selector - the widget selector
      method - the jQuery UI method
      Returns:
      the jQuery object
    • widget

      public static String widget(org.apache.wicket.Component component, String method)
      Gets the jQuery UI widget
      Parameters:
      component - the Component
      method - the jQuery UI method
      Returns:
      the jQuery object
    • destroy

      public void destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
      Description copied from interface: JQueryDestroyListener.IDestroyable
      Removes the widget functionality completely. This will return the element back to its pre-init state.
      This method is automatically called on ajax request. In case of web socket requests, this may be called manually.
      Specified by:
      destroy in interface JQueryDestroyListener.IDestroyable
      Parameters:
      handler - the IPartialPageRequestHandler
    • onConfigure

      public void onConfigure(org.apache.wicket.Component component)
      Overrides:
      onConfigure in class com.googlecode.wicket.jquery.core.JQueryBehavior
    • onDestroy

      protected void onDestroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
      Called when the widget is about to be destroyed
      Parameters:
      handler - the IPartialPageRequestHandler
      See Also: