Package org.apache.wicket.settings
Class JavaScriptLibrarySettings
- java.lang.Object
-
- org.apache.wicket.settings.JavaScriptLibrarySettings
-
public class JavaScriptLibrarySettings extends 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 Summary
Constructors Constructor Description JavaScriptLibrarySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReference
getJQueryReference()
ResourceReference
getWicketAjaxReference()
JavaScriptLibrarySettings
setJQueryReference(ResourceReference jQueryReference)
JavaScriptLibrarySettings
setWicketAjaxReference(ResourceReference wicketAjaxReference)
-
-
-
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
-
-