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 JQueryUILibrarySettings
get()
Gets theJQueryUILibrarySettings
instanceorg.apache.wicket.request.resource.ResourceReference
Gets the JQuery UI javascript resource referenceorg.apache.wicket.request.resource.ResourceReference
Gets the JQuery UI stylesheet resource referencevoid
setJavaScriptReference
(org.apache.wicket.request.resource.ResourceReference reference) Sets the jQuery UI javascript resource referencevoid
setStyleSheetReference
(org.apache.wicket.request.resource.ResourceReference reference) Sets the jQuery UI stylesheet resource reference
-
Method Details
-
get
Gets theJQueryUILibrarySettings
instance- Returns:
- the
JQueryUILibrarySettings
instance
-
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:
null
by 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
-