Class JQueryUIBehavior

    • Field Summary

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

        method, options, selector
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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
      String widget()
      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
    • Constructor Detail

      • 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 Detail

      • 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:
        destroy(IPartialPageRequestHandler)