Class JavaScriptLibrarySettings


  • public class JavaScriptLibrarySettings
    extends java.lang.Object
    Class for settings related to the JavaScript libraries that come with and are used by Wicket.

    With these settings the user application can replace the JavaScript libraries used for Wicket's event and Ajax functionality. By default Wicket uses JQuery as a backing library but via this interface the application can replace the implementations of wicket-event.js, wicket-ajax.js and wicket-ajax-debug.js to use implementations on other libraries, such as YUI or DOJO. The resource reference implementations need to specify the dependency on the backing library, if needed.

    Since:
    6.0
    • Constructor Detail

      • JavaScriptLibrarySettings

        public JavaScriptLibrarySettings()
    • Method Detail

      • getJQueryReference

        public ResourceReference getJQueryReference()
        Returns:
        the reference to the JQuery JavaScript library used as backing library for wicket-event and wicket-ajax
      • setJQueryReference

        public JavaScriptLibrarySettings setJQueryReference​(ResourceReference jQueryReference)
        Parameters:
        jQueryReference - a reference to the JQuery JavaScript library used as backing library for wicket-event and wicket-ajax
        Returns:
        this object for chaining
      • getWicketAjaxReference

        public ResourceReference getWicketAjaxReference()
        Returns:
        the reference to the implementation of wicket-ajax.js
      • setWicketAjaxReference

        public JavaScriptLibrarySettings setWicketAjaxReference​(ResourceReference wicketAjaxReference)
        Parameters:
        wicketAjaxReference - a reference to the implementation of wicket-ajax.js
        Returns:
        this object for chaining
      • getWicketAjaxDebugReference

        public ResourceReference getWicketAjaxDebugReference()
        The Wicket Ajax Debug Window.
        Returns:
        the reference to the implementation of wicket-ajax-debug.js
      • setWicketAjaxDebugReference

        public JavaScriptLibrarySettings setWicketAjaxDebugReference​(ResourceReference wicketAjaxDebugReference)
        Parameters:
        wicketAjaxDebugReference - a reference to the implementation of wicket-ajax-debug.js
        Returns:
        this object for chaining