All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.crashdata.chartjs.components.resources.ChartJSJavaScriptResourceReference Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
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()));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy