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

Java WicketWebjars类代码示例

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

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



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

示例1: initBootstrap

import de.agilecoders.wicket.webjars.WicketWebjars; //导入依赖的package包/类
protected void initBootstrap()
{
    LessCompilerConfigurationFactory lessConfigFactory = () -> {
        Configuration lessConfig = new Configuration();
        lessConfig.setCompressing(
                RuntimeConfigurationType.DEPLOYMENT.equals(getConfigurationType()));
        return lessConfig;
    };
    
    WicketWebjars.install(this);
    BootstrapLess.install(this, lessConfigFactory);
    Bootstrap.install(this);
    
    IBootstrapSettings settings = Bootstrap.getSettings(this);
    settings.setCssResourceReference(CustomBootstrapLessReference.get());
}
 
开发者ID:webanno,项目名称:webanno,代码行数:17,代码来源:WicketApplicationBase.java


示例2: install

import de.agilecoders.wicket.webjars.WicketWebjars; //导入依赖的package包/类
/**
 * Install Leaflet with given settings to application.
 * If application already has Leaflet installed, it ignores new settings.
 *
 * @param application application, which Leaflet should be bounded to.
 * @param settings custom settings, which are used to initialized library
 * @throws IllegalArgumentException if application is {@code null}.
 */
public static void install(WebApplication application, LeafletSettings settings) {
    // install Leaflet.js with given configuration
    Args.notNull(application, "application");

    if (application.getMetaData(LEAFLET_SETTINGS_KEY) == null) {
        LeafletSettings settingsOrDefault = settings != null ? settings : new DefaultLeafletSettings();
        application.setMetaData(LEAFLET_SETTINGS_KEY, settingsOrDefault);

        if (settingsOrDefault.autoAppendResources()) {
            application.getComponentInstantiationListeners().add(new LeafletResourceAppender());
        }

        if (settingsOrDefault.useWebJars()) {
            WicketWebjars.install(application);
        }
    }
}
 
开发者ID:DrunkenPandaFans,项目名称:wicket-leaflet,代码行数:26,代码来源:Leaflet.java


示例3: init

import de.agilecoders.wicket.webjars.WicketWebjars; //导入依赖的package包/类
/**
 * @see org.apache.wicket.Application#init()
 */
@Override
public void init()
{
	super.init();
	WicketWebjars.install(this);
	Bootstrap.install(this);
	// add your configuration here
}
 
开发者ID:haris44,项目名称:Wicket-PDF,代码行数:12,代码来源:WicketApplication.java


示例4: init

import de.agilecoders.wicket.webjars.WicketWebjars; //导入依赖的package包/类
@Override
public void init(WebApplication webApplication) {
	WebjarsSettings settings = new WebjarsSettings();
       WicketWebjars.install(webApplication, settings);
       
       wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
			.withDetail("properties", props)
			.build());
       
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:11,代码来源:WebjarsConfig.java


示例5: install

import de.agilecoders.wicket.webjars.WicketWebjars; //导入依赖的package包/类
/**
 * installs given settings on given application
 *
 * @param application the application to add the settings to
 * @param settings    the settings to add
 */
public static void install(final WebApplication application, IClientSideLoggingSettings settings) {
    Args.notNull(application, "application");

    if (settings(application) == null) {
        WicketWebjars.install(application);

        if(settings == null) {
            settings = new ClientSideLoggingSettings();
        }

        application.setMetaData(METADATA_KEY, settings);
    }
}
 
开发者ID:l0rdn1kk0n,项目名称:wicket-clientside-logging,代码行数:20,代码来源:ClientSideLogging.java


示例6: init

import de.agilecoders.wicket.webjars.WicketWebjars; //导入依赖的package包/类
/**
     * Define application settings
     */
    @Override
    protected void init() {
        if (logger.isDebugEnabled()) {
            logger.debug("Wicket application init (configurationType:[{}])", getConfigurationType());
        }
        defineSpringInjector();
        if (!RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) {
            // change default error/timeout pages in production mode
            //defineErrorPage();
            // remove "wicket:id" from html generated code in production mode
            getMarkupSettings().setStripWicketTags(true);
        } else {
            setupDevelopmentSettings();
        }
        //TODO Remove
  //     getDebugSettings().setAjaxDebugModeEnabled(true);
        IApplicationSettings settings = getApplicationSettings();
//        https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
        settings.setInternalErrorPage(UnknownExceptionPage.class);
//        settings.setAccessDeniedPage();
//        settings.setPageExpiredErrorPage();
        getRequestCycleListeners().add(new ExecutionHandlerRequestCycle(this, new WebPageBaseFactory()));
        //TODO : Not available in Wicket 1.5 because it's enabled by default. Why was it disabled?
//        getPageSettings().setAutomaticMultiWindowSupport(false);
        //will encrypt/decrypt the URLs generated by the inner one
        IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this);
        setRootRequestMapper(cryptoMapper);
//        ICryptFactory jasyptCryptFactory = new JasyptCryptFactory(urlEncryptor);
//        getSecuritySettings().setCryptFactory(jasyptCryptFactory);
        mountBookmarks();
//        https://cwiki.apache.org/WICKET/request-mapping.html
//        https://issues.apache.org/jira/browse/WICKET-4488
//        URL with a previous page version ignores requested page based on mount path
//        http://apache-wicket.1842946.n4.nabble.com/I-don-t-want-url-page-count-parameter-localhost-8080-context-0-td4481510i40.html
        super.init();

        WicketWebjars.install(this);

        new BeanValidationConfiguration().configure(this);

        // For VMWare SDK logging (vCloud API)
        // call only once during initialization time of your application
//		Do not work (NPE on undeploy)
//		SLF4JBridgeHandler.install();        
    }
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:49,代码来源:WicketApplication.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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