org.wicketstuff.gmap.WicketGMapJsReference Maven / Gradle / Ivy
package org.wicketstuff.gmap;
import java.util.ArrayList;
import java.util.List;
import org.apache.wicket.Application;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.JavaScriptResourceReference;
/**
* A JavaScript reference for wicket-gmap.js
*/
public class WicketGMapJsReference extends JavaScriptResourceReference {
private static final long serialVersionUID = 1L;
public static final WicketGMapJsReference INSTANCE = new WicketGMapJsReference();
/**
* Constructor.
*/
private WicketGMapJsReference()
{
super(WicketGMapJsReference.class, "wicket-gmap.js");
}
@Override
public List getDependencies()
{
List dependencies = new ArrayList<>();
Iterable extends HeaderItem> superDeps = super.getDependencies();
for (HeaderItem dep : superDeps) {
dependencies.add(dep);
}
dependencies.add(JavaScriptHeaderItem.forReference(
Application.get().getJavaScriptLibrarySettings().getWicketAjaxReference()));
return dependencies;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy