当前位置: 首页>>代码示例>>Java>>正文


Java BootstrapSettings类代码示例

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


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

示例1: getInitializerOverride

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
@Override
public WebApplicationInitializer getInitializerOverride() {
    return new WebApplicationInitializer() {
        @Override
        protected BootstrapExtensionsHeaderContributor newBootstrapExtensionsHeaderContributor(
                final BootstrapSettings bootstrapSettings) {
            return new BootstrapExtensionsHeaderContributor(bootstrapSettings) {

                @Override
                protected void renderHeadAfterBootstrap(final IHeaderResponse response) {
                    super.renderHeadAfterBootstrap(response);
                    new BootswatchThemeProvider(BootswatchTheme.Cerulean).defaultTheme().renderHead(response);
                    CeruleanExtentionsCssReference.INSTANCE.renderHead(response);
                }
            };
        }
    };
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:19,代码来源:EvaWebApplicationConfig.java

示例2: init

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
@Override
public void init() {
    super.init();
    getDebugSettings().setAjaxDebugModeEnabled(false);
    getExceptionSettings().setUnexpectedExceptionDisplay(ExceptionSettings.SHOW_EXCEPTION_PAGE);
    getComponentInstantiationListeners().add(new SpringComponentInjector(this));

    final IBootstrapSettings bootstrapSettings = new BootstrapSettings()
            .useCdnResources(getConfigurationType() == RuntimeConfigurationType.DEPLOYMENT)
            .setThemeProvider(new SingleThemeProvider(BootswatchTheme.Cosmo));
    Bootstrap.install(this, bootstrapSettings);

    //Howler.install(this);

    mountPages();
}
 
开发者ID:lumenrobot,项目名称:lumen,代码行数:17,代码来源:MyWebApplication.java

示例3: init

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
@Override
public void init() {
    super.init();
    getDebugSettings().setAjaxDebugModeEnabled(false);
    getExceptionSettings().setUnexpectedExceptionDisplay(ExceptionSettings.SHOW_EXCEPTION_PAGE);
    getComponentInstantiationListeners().add(new SpringComponentInjector(this));

    final IBootstrapSettings bootstrapSettings = new BootstrapSettings()
            .useCdnResources(getConfigurationType() == RuntimeConfigurationType.DEPLOYMENT)
            .setThemeProvider(new SingleThemeProvider(BootswatchTheme.Cosmo));
    Bootstrap.install(this, bootstrapSettings);

    //Howler.install(this);
    ((SecurePackageResourceGuard) getResourceSettings().getPackageResourceGuard()).addPattern("+*.map");

    JQueryFix1_12_1.apply(this);

    mountPages();
}
 
开发者ID:lumenrobot,项目名称:lumen,代码行数:20,代码来源:MyWebApplication.java

示例4: configureBootstrap

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
private void configureBootstrap() {
	final BootstrapSettings settings = new BootstrapSettings();
	// settings.useJqueryPP(false).useModernizr(false).useResponsiveCss(true)
	// .setJsResourceFilterName("footer-container");

	// reactivate if new less4j version is available:
	// settings.getBootstrapLessCompilerSettings().setUseLessCompiler(usesDevelopmentConfig());
	// settings.getBootstrapLessCompilerSettings().setLessCompiler(new
	// Less4JCompiler());

	ThemeProvider themeProvider = new BootswatchThemeProvider() {
		{
			defaultTheme("united");
		}
	};
	settings.setThemeProvider(themeProvider);

	Bootstrap.install(this, settings);
}
 
开发者ID:atomfrede,项目名称:freezing-octo-bear,代码行数:20,代码来源:WicketApplication.java

示例5: init

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
/**
 * @see org.apache.wicket.Application#init()
 */
@Override
public void init() {
  super.init();
  BootstrapSettings settings = new BootstrapSettings();
  Bootstrap.install(this, settings);
  configureTheme(settings);

  getComponentInstantiationListeners().add(
      new SpringComponentInjector(this, context));
}
 
开发者ID:jorcox,项目名称:GeoCrawler,代码行数:14,代码来源:NutchUiApplication.java

示例6: initBootstrap

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
private void initBootstrap() {
    BootstrapSettings settings = new BootstrapSettings();

    final ThemeProvider themeProvider = new BootswatchThemeProvider(BootswatchTheme.Spacelab);
    settings.setThemeProvider(themeProvider);

    Bootstrap.install(this, settings);
}
 
开发者ID:citlab,项目名称:Intercloud,代码行数:9,代码来源:IntercloudWebApplication.java

示例7: registerHeaderContributors

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
/**
 * not bundling resources here since this actually introduces problems and might in fact decrease load time instead
 * of improving it (e.g. with respond.js)
 */
protected void registerHeaderContributors() {
    final BootstrapSettings bootstrapSettings = new BootstrapSettings();
    bootstrapSettings.setAutoAppendResources(false);
    customizeBootstrapSettings(bootstrapSettings);
    Bootstrap.install(webApplication, bootstrapSettings);
    final BootstrapExtensionsHeaderContributor headerContributor = newBootstrapExtensionsHeaderContributor(
            bootstrapSettings);
    webApplication.getHeaderContributorListeners().add(headerContributor);
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:14,代码来源:WebApplicationInitializer.java

示例8: configureBootstrap

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
/**
 * Configures wicket-bootstrap.
 */
private void configureBootstrap() {

	// configure default bootstrap libs loading wrt. vfs urls
	configureVfsURLHandler();

	// Remove Wicket markup as it may lead to strange UI problems because
	// CSS selectors may not match anymore.
	getMarkupSettings().setStripWicketTags(true);

	BootstrapSettings settings = new BootstrapSettings();
	Bootstrap.install(this, settings);
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:16,代码来源:UQasar.java

示例9: initBootstrap

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
private void initBootstrap() {		
	final ThemeProvider themeProvider = new BootswatchThemeProvider() {
		{
			add(new MetroTheme());
			add(new GoogleTheme());
			add(new WicketTheme());
			add(new Bootstrap3Theme());
			defaultTheme("united");
		}
	};
	BootstrapSettings settings = new BootstrapSettings();
	settings.setJsResourceFilterName("footer-container")
       .setThemeProvider(themeProvider);
	Bootstrap.install(this, settings);
}
 
开发者ID:mpostelnicu,项目名称:wicket-spring-jpa-bootstrap-boilerplate,代码行数:16,代码来源:WicketApplication.java

示例10: init

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
@Override
protected void init() {
    super.init();
    new ExtendedCdiConfiguration().configure(this);

    BootstrapSettings bootstrapSettings = new BootstrapSettings();
	bootstrapSettings.setCssResourceReference(Resources.BOOTSTRAP_CSS);
	Bootstrap.install(this, bootstrapSettings);
    
    mountPage(MessageFormat.format("/product/$'{'{0}'}'",EntityResolver.PRODUCT), BrowsePage.class);
    mountPage("/review", NotFinishedPage.class);
	mountPage(MessageFormat.format("/edit/#'{'{0}'}'",EntityResolver.PRODUCT), EditProductPage.class);
	mountPage(MessageFormat.format("/edit/#'{'{0}'}'/version/#'{'{1}'}'",EntityResolver.PRODUCT, EntityResolver.VERSION), EditVersionPage.class);
}
 
开发者ID:MichaelRehberg,项目名称:gluezilla,代码行数:15,代码来源:GluezillaApplication.java

示例11: configureBootstrap

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
private void configureBootstrap() {
    
    final IBootstrapSettings settings = new BootstrapSettings();
    settings.useCdnResources(true);
    
    final ThemeProvider themeProvider = new BootswatchThemeProvider(BootswatchTheme.Spacelab);
    settings.setThemeProvider(themeProvider);
    
    Bootstrap.install(this, settings);
    BootstrapLess.install(this);
}
 
开发者ID:dmbeer,项目名称:wicket-bootstrap-example,代码行数:12,代码来源:WicketApplication.java

示例12: configureTheme

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
private void configureTheme(BootstrapSettings settings) {
  Theme theme = new Theme(THEME_NAME, BootstrapCssReference.instance(),
      FontAwesomeCssReference.instance(), NutchUiCssReference.instance());
  settings.setThemeProvider(new SingleThemeProvider(theme));
}
 
开发者ID:jorcox,项目名称:GeoCrawler,代码行数:6,代码来源:NutchUiApplication.java

示例13: initBootstrap

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
private void initBootstrap() {
    Bootstrap.install(this,
            new BootstrapSettings()
            //bootstrap CSS is provided via markup (CSS link in HTML head)
            .setThemeProvider(new SingleThemeProvider(new ExtremeNoopTheme())));
}
 
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:7,代码来源:VloWicketApplication.java

示例14: newBootstrapExtensionsHeaderContributor

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
protected BootstrapExtensionsHeaderContributor newBootstrapExtensionsHeaderContributor(
        final BootstrapSettings bootstrapSettings) {
    return new BootstrapExtensionsHeaderContributor(bootstrapSettings);
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:WebApplicationInitializer.java

示例15: BootstrapExtensionsHeaderContributor

import de.agilecoders.wicket.core.settings.BootstrapSettings; //导入依赖的package包/类
public BootstrapExtensionsHeaderContributor(final BootstrapSettings bootstrapSettings) {
    this.bootstrapSettings = bootstrapSettings;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:4,代码来源:BootstrapExtensionsHeaderContributor.java


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