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 JQueryUILibrarySettings
get()
Gets theJQueryUILibrarySettings
instanceorg.apache.wicket.request.resource.ResourceReference
getJavaScriptReference()
Gets the JQuery UI javascript resource referenceorg.apache.wicket.request.resource.ResourceReference
getStyleSheetReference()
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 Detail
-
get
public static JQueryUILibrarySettings 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(ResourceReference)
-
setStyleSheetReference
public void setStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the jQuery UI stylesheet resource reference- Parameters:
reference
- theResourceReference
-
-