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


Java Bootstrap.getSettings方法代码示例

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


在下文中一共展示了Bootstrap.getSettings方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initBootstrap

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的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: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
    protected void init() {
        super.init();

        IBootstrapSettings settings = Bootstrap.getSettings();
//        settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));
        settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Sandstone));
    }
 
开发者ID:bibryam,项目名称:rotabuilder,代码行数:9,代码来源:DomainApplication.java

示例3: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
protected void init() {
    super.init();

    IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));
}
 
开发者ID:leandrogonqn,项目名称:Proyecto2017Seguros,代码行数:8,代码来源:PacinetesApplication.java

示例4: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
protected void init() {
    super.init();

    IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Sandstone));
}
 
开发者ID:bibryam,项目名称:semat,代码行数:8,代码来源:DomainApplication.java

示例5: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
protected void init() {
    super.init();

    final IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));

    settings.setActiveThemeProvider(new EcpCrmUserSettingsThemeProvider(settings));
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:10,代码来源:EcpCrmApplication.java

示例6: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
protected void init() {
    super.init();

    final IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));

    settings.setActiveThemeProvider(new DomainAppUserSettingsThemeProvider(settings));
}
 
开发者ID:isisaddons-legacy,项目名称:isis-app-quickstart,代码行数:10,代码来源:DomainApplication.java

示例7: handleThemePageParameter

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
private void handleThemePageParameter() {
    final PageParameters pageParameters = getPageParameters();
    final String theme = Strings.asString(pageParameters.get(PAGE_PARAM_THEME));
    if (Strings.isNotBlank(theme)) {
        final IBootstrapSettings settings = Bootstrap.getSettings(getApplication());
        try {
            settings.getActiveThemeProvider().setActiveTheme(theme);
        } catch (final Throwable t) {
            LOG.catching(t);
        }
        pageParameters.remove(PAGE_PARAM_THEME);
        throw new RestartResponseException(getClass(), pageParameters); //remove page param
    }
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:15,代码来源:AExampleWebPage.java

示例8: getDependencies

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
public List<HeaderItem> getDependencies()
{
    IBootstrapSettings settings = Bootstrap.getSettings();
    final JavaScriptReferenceHeaderItem jsReference = JavaScriptHeaderItem.forReference(
            settings.getJsResourceReference(), new PageParameters(), "bootstrap-js",
            settings.deferJavascript());
    return Dependencies.combine(super.getDependencies(), jsReference);
}
 
开发者ID:webanno,项目名称:webanno,代码行数:10,代码来源:BootstrapAwareJQueryUIJavaScriptResourceReference.java

示例9: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
protected void init() {
    super.init();

    final IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));

    settings.setActiveThemeProvider(new UserSettingsThemeProvider(settings));
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:10,代码来源:ToDoApplication.java

示例10: init

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
@Override
protected void init() {
    super.init();

    getDebugSettings().setOutputMarkupContainerClassName(true);
    getMarkupSettings().setStripWicketTags(true);
    getDebugSettings().setAjaxDebugModeEnabled(false);

    IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:12,代码来源:KitchensinkApplication.java

示例11: configureTheme

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
private void configureTheme(PageParameters pageParameters) {
    StringValue theme = pageParameters.get("theme");

    if (!theme.isEmpty()) {
        IBootstrapSettings settings = Bootstrap.getSettings(getApplication());
        settings.getActiveThemeProvider().setActiveTheme(theme.toString(""));
    }
}
 
开发者ID:mpostelnicu,项目名称:wicket-spring-jpa-bootstrap-boilerplate,代码行数:9,代码来源:AbstractWebPage.java

示例12: activeTheme

import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
protected ITheme activeTheme() {
    IBootstrapSettings settings = Bootstrap.getSettings(getApplication());

    return settings.getActiveThemeProvider().getActiveTheme();
}
 
开发者ID:mpostelnicu,项目名称:wicket-spring-jpa-bootstrap-boilerplate,代码行数:6,代码来源:AbstractWebPage.java


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