Class JQueryUILibrarySettings
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.settings.JQueryUILibrarySettings
-
public class JQueryUILibrarySettings extends Object
Provides library settings for jQuery UI resource references
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JQueryUILibrarySettingsget()Gets theJQueryUILibrarySettingsinstanceorg.apache.wicket.request.resource.ResourceReferencegetJavaScriptReference()Gets the JQuery UI javascript resource referenceorg.apache.wicket.request.resource.ResourceReferencegetStyleSheetReference()Gets 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 Detail
-
get
public static JQueryUILibrarySettings 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(ResourceReference)
-
setStyleSheetReference
public void setStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the jQuery UI stylesheet resource reference- Parameters:
reference- theResourceReference
-
-