nl.crashdata.chartjs.components.resources.ChartJSJavaScriptResourceReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-chartjs-wicket Show documentation
Show all versions of java-chartjs-wicket Show documentation
Wicket components for drawing a chart with ChartJs
package nl.crashdata.chartjs.components.resources;
import java.util.Collections;
import java.util.List;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.JavaScriptResourceReference;
public final class ChartJSJavaScriptResourceReference extends JavaScriptResourceReference
{
private static final long serialVersionUID = 1L;
private static final String CHARTJS_NAME = "chart.v2.7.2.js";
private static final ChartJSJavaScriptResourceReference INSTANCE =
new ChartJSJavaScriptResourceReference();
private ChartJSJavaScriptResourceReference()
{
super(ChartJSJavaScriptResourceReference.class, CHARTJS_NAME);
}
public static ChartJSJavaScriptResourceReference get()
{
return INSTANCE;
}
@Override
public List getDependencies()
{
return Collections.singletonList(
JavaScriptHeaderItem.forReference(MomentJavaScriptResourceReference.get()));
}
}