Class 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 Detail

      • 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 - the ResourceReference
      • 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 - the ResourceReference