org.apache.wicket.settings
Interface IJavaScriptLibrarySettings

All Known Implementing Classes:
JavaScriptLibrarySettings

public interface IJavaScriptLibrarySettings

Interface 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

Method Summary
 ResourceReference getJQueryReference()
           
 ResourceReference getWicketAjaxDebugReference()
          The Wicket Ajax Debug Window.
 ResourceReference getWicketAjaxReference()
           
 ResourceReference getWicketEventReference()
           
 void setJQueryReference(ResourceReference reference)
           
 void setWicketAjaxDebugReference(ResourceReference reference)
           
 void setWicketAjaxReference(ResourceReference reference)
           
 void setWicketEventReference(ResourceReference reference)
           
 

Method Detail

getJQueryReference

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

setJQueryReference

void setJQueryReference(ResourceReference reference)
Parameters:
reference - a reference to the JQuery JavaScript library used as backing library for wicket-event and wicket-ajax

getWicketEventReference

ResourceReference getWicketEventReference()
Returns:
the reference to the implementation of wicket-event.js

setWicketEventReference

void setWicketEventReference(ResourceReference reference)
Parameters:
reference - a reference to the implementation of wicket-event.js

getWicketAjaxReference

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

setWicketAjaxReference

void setWicketAjaxReference(ResourceReference reference)
Parameters:
reference - a reference to the implementation of wicket-ajax.js

getWicketAjaxDebugReference

ResourceReference getWicketAjaxDebugReference()
The Wicket Ajax Debug Window.

Returns:
the reference to the implementation of wicket-ajax-debug.js

setWicketAjaxDebugReference

void setWicketAjaxDebugReference(ResourceReference reference)
Parameters:
reference - a reference to the implementation of wicket-ajax-debug.js


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.