本文整理了Java中de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference.<init>()
方法的一些代码示例,展示了WebjarsJavaScriptResourceReference.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebjarsJavaScriptResourceReference.<init>()
方法的具体详情如下:
包路径:de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference
类名称:WebjarsJavaScriptResourceReference
方法名:<init>
[英]Construct.
[中]建筑
代码示例来源:origin: OrienteerBAP/Orienteer
CodeMirrorJs(String name) {
resourceReference = new WebjarsJavaScriptResourceReference(name);
}
代码示例来源:origin: OrienteerBAP/Orienteer
protected JavaScriptResourceReference getLocalizationJSResource(String lang) {
if(Strings.isEmpty(lang) || "en".equals(lang)) return null;
WebjarsJavaScriptResourceReference ret = LANGUAGES_MAP.get(lang);
if(ret==null) {
ret = new WebjarsJavaScriptResourceReference("/webjars/pivottable/current/dist/pivot."+lang+".min.js");
LANGUAGES_MAP.put(lang, ret);
}
return ret;
}
代码示例来源:origin: org.apache.wicket.experimental.wicket8/wicket-atmosphere
@Override
public List<HeaderItem> getDependencies()
{
List<HeaderItem> dependencies = super.getDependencies();
WebjarsJavaScriptResourceReference jqueryAtmosphereReference = new WebjarsJavaScriptResourceReference("jquery-atmosphere/current/jquery.atmosphere.js");
dependencies.add(JavaScriptHeaderItem.forReference(jqueryAtmosphereReference));
return dependencies;
}
}
代码示例来源:origin: OrienteerBAP/Orienteer
private void addBootstrapDatepicker(IHeaderResponse response) {
response.render(CssHeaderItem.forReference(BOOTSTRAP_DATE_PICKER_CSS));
response.render(JavaScriptHeaderItem.forReference(BOOTSTRAP_DATE_PICKER_JS));
String language = getLocale().getLanguage();
if (!language.equals(Locale.ENGLISH.getLanguage())) {
response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference(
String.format(BOOTSTRAP_DATEPICKER_LOCALE, language))));
}
}
代码示例来源:origin: theonedev/onedev
@Override
public List<HeaderItem> getDependencies() {
List<HeaderItem> dependencies = super.getDependencies();
WebjarsJavaScriptResourceReference metaReference = new WebjarsJavaScriptResourceReference("codemirror/current/mode/meta.js");
String modeBase = StringUtils.substringBeforeLast(RequestCycle.get().urlFor(metaReference, new PageParameters()).toString(), "/");
dependencies.add(OnDomReadyHeaderItem.forScript("CodeMirror.modeURL = '" + modeBase + "/%N/%N.js';"));
return dependencies;
}
代码示例来源:origin: theonedev/onedev
@Override
public List<HeaderItem> getDependencies() {
List<HeaderItem> dependencies = super.getDependencies();
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/lib/codemirror.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/mode/overlay.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/mode/loadmode.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/edit/matchbrackets.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/dialog/dialog.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/fold/foldcode.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/fold/foldgutter.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/fold/brace-fold.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/fold/xml-fold.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/fold/markdown-fold.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/fold/comment-fold.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/search/searchcursor.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/search/search.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/search/matchesonscrollbar.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new BaseDependentResourceReference(CodeMirrorResourceReference.class, "matchesonscrollbar2.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/selection/active-line.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/scroll/annotatescrollbar.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/display/fullscreen.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/addon/selection/mark-selection.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new BaseDependentResourceReference(CodeMirrorResourceReference.class, "annotatescrollbar2.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new BaseDependentResourceReference(CodeMirrorResourceReference.class, "simplescrollbars.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new BaseDependentResourceReference(CodeMirrorResourceReference.class, "identifier-highlighter.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new BaseDependentResourceReference(CodeMirrorResourceReference.class, "highlight.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/mode/meta.js")));
dependencies.add(JavaScriptHeaderItem.forReference(new ModeUrlResourceReference()));
代码示例来源:origin: org.wicketstuff/wicketstuff-openlayers3
@Override
public void renderHead(final IHeaderResponse response) {
response.render(CssHeaderItem.forReference(new WebjarsJavaScriptResourceReference("openlayers/current/ol.css")));
if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) {
response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("openlayers/current/ol-debug.js")));
} else {
response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("openlayers/current/ol.js")));
}
response.render(OnDomReadyHeaderItem.forScript(this.renderJs()));
}
}
代码示例来源:origin: inception-project/inception
@Override
public void renderHead(IHeaderResponse aResponse)
{
super.renderHead(aResponse);
// import Js
aResponse.render(JavaScriptHeaderItem
.forReference(new WebjarsJavaScriptResourceReference("c3/current/c3.js")));
aResponse.render(JavaScriptHeaderItem
.forReference(new WebjarsJavaScriptResourceReference("d3js/current/d3.js")));
// import Css
aResponse.render(
CssHeaderItem.forReference(new WebjarsCssResourceReference("c3/current/c3.css")));
}
代码示例来源:origin: MarcGiffing/wicket-spring-boot
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference()));
response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getWicketEventReference()));
response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getWicketAjaxReference()));
String bootstrapPrefixPath = "bootstrap/current";
response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference(bootstrapPrefixPath + "/js/bootstrap.js")));
response.render(CssHeaderItem.forReference(new WebjarsJavaScriptResourceReference(bootstrapPrefixPath + "/css/bootstrap.css")));
}
代码示例来源:origin: OrienteerBAP/Orienteer
if(renderStrategy!=null) getRequestCycleSettings().setRenderStrategy(renderStrategy);
getJavaScriptLibrarySettings().setJQueryReference(new WebjarsJavaScriptResourceReference("jquery/current/jquery.min.js"));
内容来源于网络,如有侵权,请联系作者删除!