本文整理汇总了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());
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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
}
}
示例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);
}
示例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));
}
示例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));
}
示例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(""));
}
}
示例12: activeTheme
import de.agilecoders.wicket.core.Bootstrap; //导入方法依赖的package包/类
protected ITheme activeTheme() {
IBootstrapSettings settings = Bootstrap.getSettings(getApplication());
return settings.getActiveThemeProvider().getActiveTheme();
}