use of de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference in project webanno by webanno.
the class BratAnnotationEditor method renderHead.
@Override
public void renderHead(IHeaderResponse aResponse) {
super.renderHead(aResponse);
// CSS
aResponse.render(CssHeaderItem.forReference(BratCssVisReference.get()));
aResponse.render(CssHeaderItem.forReference(BratCssUiReference.get()));
aResponse.render(CssHeaderItem.forReference(new WebjarsCssResourceReference("animate.css/current/animate.css")));
// Libraries
aResponse.render(forReference(JQueryUILibrarySettings.get().getJavaScriptReference()));
aResponse.render(forReference(JQuerySvgResourceReference.get()));
aResponse.render(forReference(JQuerySvgDomResourceReference.get()));
aResponse.render(forReference(JQueryJsonResourceReference.get()));
aResponse.render(forReference(JQueryScrollbarWidthReference.get()));
aResponse.render(forReference(JSONPatchResourceReference.get()));
// BRAT helpers
aResponse.render(forReference(BratConfigurationResourceReference.get()));
aResponse.render(forReference(BratUtilResourceReference.get()));
// aResponse.render(
// JavaScriptHeaderItem.forReference(BratAnnotationLogResourceReference.get()));
// BRAT modules
aResponse.render(forReference(BratDispatcherResourceReference.get()));
aResponse.render(forReference(BratAjaxResourceReference.get()));
aResponse.render(forReference(BratVisualizerResourceReference.get()));
aResponse.render(forReference(BratVisualizerUiResourceReference.get()));
aResponse.render(forReference(BratAnnotatorUiResourceReference.get()));
// aResponse.render(
// JavaScriptHeaderItem.forReference(BratUrlMonitorResourceReference.get()));
// If the page is reloaded in the browser and a document was already open, we need
// to render it. We use the "later" commands here to avoid polluting the Javascript
// header items with document data and because loading times are not that critical
// on a reload.
// We only do this if we are *not* in a partial page reload. The case of a partial
// page reload is covered in onAfterRender()
AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
if (target == null && getModelObject().getProject() != null) {
bratInitRenderLater(aResponse);
}
}
Aggregations