java.lang.Object
org.apache.wicket.settings.JavaScriptLibrarySettings
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetJQueryReference
(ResourceReference jQueryReference) setWicketAjaxReference
(ResourceReference wicketAjaxReference)
-
Constructor Details
-
JavaScriptLibrarySettings
public JavaScriptLibrarySettings()
-
-
Method Details
-
getJQueryReference
- Returns:
- the reference to the JQuery JavaScript library used as backing library for wicket-event and wicket-ajax
-
setJQueryReference
- 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
- Returns:
- the reference to the implementation of wicket-ajax.js
-
setWicketAjaxReference
- Parameters:
wicketAjaxReference
- a reference to the implementation of wicket-ajax.js- Returns:
this
object for chaining
-