本文整理汇总了Java中de.agilecoders.wicket.core.settings.BootstrapSettings.setThemeProvider方法的典型用法代码示例。如果您正苦于以下问题:Java BootstrapSettings.setThemeProvider方法的具体用法?Java BootstrapSettings.setThemeProvider怎么用?Java BootstrapSettings.setThemeProvider使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.agilecoders.wicket.core.settings.BootstrapSettings
的用法示例。
在下文中一共展示了BootstrapSettings.setThemeProvider方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: 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);
}
示例3: 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));
}