com.googlecode.wickedcharts.wicket6
Class JavaScriptResourceRegistry

java.lang.Object
  extended by com.googlecode.wickedcharts.wicket6.JavaScriptResourceRegistry

public class JavaScriptResourceRegistry
extends Object

A registry for the JavaScript dependencies used by wicked-charts. By default, all JavaScript references will be loaded from the web. If you want to package your own JavaScript files or change the URLs, you can do so by calling the setter methods from the init() method of your wicket application.

Author:
Tom Hombergs (tom.hombergs@gmail.com)

Nested Class Summary
 class JavaScriptResourceRegistry.RegistryEntry
           
 
Field Summary
static String DEFAULT_HIGHCHARTS_EXPORTING_URL
           
static String DEFAULT_HIGHCHARTS_MORE_URL
           
static String DEFAULT_HIGHCHARTS_URL
           
static String DEFAULT_JQUERY_URL
           
 
Method Summary
 JavaScriptResourceRegistry.RegistryEntry getHighchartsEntry()
           
 JavaScriptResourceRegistry.RegistryEntry getHighchartsExportingEntry()
           
 JavaScriptResourceRegistry.RegistryEntry getHighchartsMoreEntry()
           
static JavaScriptResourceRegistry getInstance()
           
 JavaScriptResourceRegistry.RegistryEntry getJQueryEntry()
           
 void setHighchartsExportingReference(org.apache.wicket.request.resource.ResourceReference reference)
          Sets the ResourceReference to use to load the Highcharts exporting javascript library (exporting.js).
 void setHighchartsExportingReference(String url)
          Sets the URL to use to load the Highcharts exporting javascript library (exporting.js).
 void setHighchartsMoreReference(org.apache.wicket.request.resource.ResourceReference reference)
          Sets the ResourceReference to use to load the Highcharts "more" javascript library (highcharts-more.js).
 void setHighchartsMoreReference(String url)
          Sets the URL to use to load the Highcharts "more" javascript library (highcharts-more.js).
 void setHighchartsReference(org.apache.wicket.request.resource.ResourceReference reference)
          Sets the ResourceReference to use to load the Highcharts javascript library (highcharts.js).
 void setHighchartsReference(String url)
          Sets the URL to use to load the Highcharts javascript library (highcharts.js).
 void setJQueryReference(org.apache.wicket.request.resource.ResourceReference reference)
          Sets the ResourceReference to use to load JQuery (jquery.js).Use this method if you want to include the javascript file in your web application.
 void setJQueryReference(String url)
          Sets the URL to use to load JQuery (jquery.js).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_JQUERY_URL

public static final String DEFAULT_JQUERY_URL
See Also:
Constant Field Values

DEFAULT_HIGHCHARTS_URL

public static final String DEFAULT_HIGHCHARTS_URL
See Also:
Constant Field Values

DEFAULT_HIGHCHARTS_MORE_URL

public static final String DEFAULT_HIGHCHARTS_MORE_URL
See Also:
Constant Field Values

DEFAULT_HIGHCHARTS_EXPORTING_URL

public static final String DEFAULT_HIGHCHARTS_EXPORTING_URL
See Also:
Constant Field Values
Method Detail

getInstance

public static JavaScriptResourceRegistry getInstance()

getHighchartsEntry

public JavaScriptResourceRegistry.RegistryEntry getHighchartsEntry()

getHighchartsExportingEntry

public JavaScriptResourceRegistry.RegistryEntry getHighchartsExportingEntry()

getHighchartsMoreEntry

public JavaScriptResourceRegistry.RegistryEntry getHighchartsMoreEntry()

getJQueryEntry

public JavaScriptResourceRegistry.RegistryEntry getJQueryEntry()

setHighchartsExportingReference

public void setHighchartsExportingReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the ResourceReference to use to load the Highcharts exporting javascript library (exporting.js). Use this method if you want to include the javascript file in your web application.


setHighchartsExportingReference

public void setHighchartsExportingReference(String url)
Sets the URL to use to load the Highcharts exporting javascript library (exporting.js). Use this method if you want to load the javascript file from an external URL.


setHighchartsMoreReference

public void setHighchartsMoreReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the ResourceReference to use to load the Highcharts "more" javascript library (highcharts-more.js). Use this method if you want to include the javascript file in your web application.


setHighchartsMoreReference

public void setHighchartsMoreReference(String url)
Sets the URL to use to load the Highcharts "more" javascript library (highcharts-more.js). Use this method if you want to load the javascript file from an external URL.


setHighchartsReference

public void setHighchartsReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the ResourceReference to use to load the Highcharts javascript library (highcharts.js). Use this method if you want to include the javascript file in your web application.


setHighchartsReference

public void setHighchartsReference(String url)
Sets the URL to use to load the Highcharts javascript library (highcharts.js). Use this method if you want to load the javascript file from an external URL.


setJQueryReference

public void setJQueryReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the ResourceReference to use to load JQuery (jquery.js).Use this method if you want to include the javascript file in your web application.


setJQueryReference

public void setJQueryReference(String url)
Sets the URL to use to load JQuery (jquery.js). Use this method if you want to load the javascript file from an external URL.



Copyright © 2013. All Rights Reserved.