• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java WebjarsJavaScriptResourceReference类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference的典型用法代码示例。如果您正苦于以下问题:Java WebjarsJavaScriptResourceReference类的具体用法?Java WebjarsJavaScriptResourceReference怎么用?Java WebjarsJavaScriptResourceReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WebjarsJavaScriptResourceReference类属于de.agilecoders.wicket.webjars.request.resource包,在下文中一共展示了WebjarsJavaScriptResourceReference类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getDependencies

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@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;
}
 
开发者ID:jmfgdev,项目名称:gitplex-mit,代码行数:9,代码来源:ModeUrlResourceReference.java


示例2: renderHead

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@Override
    public void renderHead(IHeaderResponse response) {
        super.renderHead(response);
        response.render(CssHeaderItem.forReference(new WebjarsCssResourceReference("jointjs/0.9.7/dist/joint.min.css")));

        response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference()));
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("lodash/3.10.1/lodash.min.js")));
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("backbone/1.2.3/backbone-min.js")));
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("graphlib/1.0.7/dist/graphlib.core.min.js")));
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("dagre/0.7.4/dist/dagre.core.min.js")));
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jointjs/0.9.7/dist/joint.min.js")));
//        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jointjs/0.9.7/dist/joint.shapes.uml.min.js")));
//        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jointjs/0.9.7/dist/joint.layout.DirectedGraph.min.js")));
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("underscore/1.8.3/underscore-min.js")));
    }
 
开发者ID:lumenrobot,项目名称:lumen,代码行数:16,代码来源:SkillPanel.java


示例3: renderHead

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@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")));
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:13,代码来源:BasePage.java


示例4: renderHead

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/lib/codemirror.js")));
    response.render(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/lib/codemirror.css")));
    response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("codemirror/current/mode/properties/properties.js")));
    response.render(OnLoadHeaderItem.forScript(
              "var cm = CodeMirror.fromTextArea(document.getElementById('" + getMarkupId() + "'), { readOnly: " + readOnly + " });"
            + "cm.on('change',function(cm){"
            +     "document.getElementById('" + getMarkupId() + "').value = cm.getValue();"
            + "});"));
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:13,代码来源:CodeMirrorTextArea.java


示例5: renderHead

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@Override
public void renderHead(IHeaderResponse response) {
    response.render(CssHeaderItem.forReference(
            new PackageResourceReference(GizmoTheme.class, "bootstrap.css")));

    response.render(CssHeaderItem.forReference(
            new WebjarsCssResourceReference("/bootstrap-switch/current/css/bootstrap3/bootstrap-switch.css")));

    response.render(JavaScriptHeaderItem.forReference(
            new WebjarsJavaScriptResourceReference("/bootstrap-switch/current/js/bootstrap-switch.js")));
}
 
开发者ID:Evolveum,项目名称:gizmo-v3,代码行数:12,代码来源:GizmoTheme.java


示例6: renderHead

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@Override
public void renderHead(Component component, IHeaderResponse response) {
    final IClientSideLoggingSettings settings = settings();

    // createCallbackUrl must be called for each request, else it could be wrong because it is relative to ajax base url.
    data.put("url", createCallbackUrl());

    response.render(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
    response.render(JavaScriptHeaderItem.forReference(WicketAjaxJQueryResourceReference.get()));

    if (settings.logStacktrace()) {
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("stacktrace/current/stacktrace.js")));
    }

    /**
     * amplify js is used as wrapper for localStorage because each browser comes with its own implementation
     */
    if (CollectionType.LocalStorage.asString().equals(data.get("collectionType"))) {
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("amplifyjs/current/amplify.store.min.js")));
    }

    // add momentjs javascript file if necessary
    if (data.containsKey("dateFormat")) {
        response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("momentjs/current/momentjs.min.js")));
    }

    response.render(settings.javaScriptHeaderItem());
    response.render(newHeaderItem(createInitializerScript(data), settings.id()));
}
 
开发者ID:l0rdn1kk0n,项目名称:wicket-clientside-logging,代码行数:30,代码来源:ClientSideLoggingBehavior.java


示例7: getDependencies

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@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, "gotoline.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()));
	
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/lib/codemirror.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/theme/eclipse.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/addon/dialog/dialog.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/addon/fold/foldgutter.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/addon/scroll/simplescrollbars.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/addon/search/matchesonscrollbar.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/addon/display/fullscreen.css")));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(CodeMirrorResourceReference.class, "highlight.css")));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(CodeMirrorResourceReference.class, "codemirror.css")));

	return dependencies;
}
 
开发者ID:jmfgdev,项目名称:gitplex-mit,代码行数:45,代码来源:CodeMirrorResourceReference.java


示例8: renderHead

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; //导入依赖的package包/类
@Override
public void renderHead(Component component, IHeaderResponse response) {
    response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jquery-blockui/current/jquery.blockUI.js"), "blockui-js"));
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:5,代码来源:BlockUIDecorator.java



注:本文中的de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LongSerializer类代码示例发布时间:2022-05-22
下一篇:
Java Connection类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap