Class JQueryUILibrarySettings
java.lang.Object
com.googlecode.wicket.jquery.ui.settings.JQueryUILibrarySettings
Provides library settings for jQuery UI resource references
Usage:
Usage:
public class MyApplication extends WebApplication
{
public void init()
{
super.init();
JQueryUILibrarySettings settings = JQueryUILibrarySettings.get();
settings.setJavaScriptReference(new JavaScriptResourceReference(...)); // if you want to change the js version
settings.setStyleSheetReference(new CssResourceReference(MyApplication.class, "jquery-ui.custom.min.css"));
}
}
- Author:
- Sebastien Briquet - sebfz1
-
Method Summary
Modifier and TypeMethodDescriptionstatic JQueryUILibrarySettingsget()Gets theJQueryUILibrarySettingsinstanceorg.apache.wicket.request.resource.ResourceReferenceGets the JQuery UI javascript resource referenceorg.apache.wicket.request.resource.ResourceReferenceGets the JQuery UI stylesheet resource referencevoidsetJavaScriptReference(org.apache.wicket.request.resource.ResourceReference reference) Sets the jQuery UI javascript resource referencevoidsetStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference) Sets the jQuery UI stylesheet resource reference
-
Method Details
-
get
Gets theJQueryUILibrarySettingsinstance- Returns:
- the
JQueryUILibrarySettingsinstance
-
getJavaScriptReference
public org.apache.wicket.request.resource.ResourceReference getJavaScriptReference()Gets the JQuery UI javascript resource reference- Returns:
- the
ResourceReference
-
setJavaScriptReference
public void setJavaScriptReference(org.apache.wicket.request.resource.ResourceReference reference) Sets the jQuery UI javascript resource reference- Parameters:
reference- theResourceReference
-
getStyleSheetReference
public org.apache.wicket.request.resource.ResourceReference getStyleSheetReference()Gets the JQuery UI stylesheet resource reference- Returns:
nullby default, meaning the style is supplied through the HTML page (<link rel="stylesheet" type="text/css" href="..." />)- See Also:
-
setStyleSheetReference
public void setStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference) Sets the jQuery UI stylesheet resource reference- Parameters:
reference- theResourceReference
-