本文整理汇总了Java中de.agilecoders.wicket.core.Bootstrap类的典型用法代码示例。如果您正苦于以下问题:Java Bootstrap类的具体用法?Java Bootstrap怎么用?Java Bootstrap使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Bootstrap类属于de.agilecoders.wicket.core包,在下文中一共展示了Bootstrap类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
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();
}
示例3: init
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的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();
}
示例4: configureBootstrap
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的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);
}
示例5: 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));
}
示例6: getDependencies
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
@Override
public List<HeaderItem> getDependencies() {
List<HeaderItem> dependencies = new ArrayList<HeaderItem>();
dependencies.add(JavaScriptHeaderItem.forReference(Bootstrap.getSettings().getModernizrResourceReference()));
dependencies.add(JavaScriptHeaderItem.forReference(Bootstrap.getSettings().getJsResourceReference()));
dependencies.add(JavaScriptHeaderItem.forReference(new AlignResourceReference()));
dependencies.add(JavaScriptHeaderItem.forReference(new AutoSizeResourceReference()));
dependencies.add(JavaScriptHeaderItem.forReference(new AreYouSureResourceReference()));
dependencies.add(CssHeaderItem.forReference(new BaseCssResourceReference()));
return dependencies;
}
示例7: getDependencies
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
@Override
public List<HeaderItem> getDependencies() {
List<HeaderItem> dependencies = super.getDependencies();
dependencies.add(CssHeaderItem.forReference(Bootstrap.getSettings().getCssResourceReference()));
dependencies.add(CssHeaderItem.forReference(new FontAwesomeResourceReference()));
dependencies.add(CssHeaderItem.forReference(new FontExtResourceReference()));
return dependencies;
}
示例8: init
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
@Override
protected void init() {
super.init();
IBootstrapSettings settings = Bootstrap.getSettings();
settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));
}
示例9: init
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的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));
}
示例10: init
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
@Override
protected void init() {
super.init();
IBootstrapSettings settings = Bootstrap.getSettings();
settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Sandstone));
}
示例11: init
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
/**
* @see org.apache.wicket.Application#init()
*/
@Override
public void init()
{
super.init();
WicketWebjars.install(this);
Bootstrap.install(this);
// add your configuration here
}
示例12: 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));
}
示例13: initBootstrap
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
private void initBootstrap() {
BootstrapSettings settings = new BootstrapSettings();
final ThemeProvider themeProvider = new BootswatchThemeProvider(BootswatchTheme.Spacelab);
settings.setThemeProvider(themeProvider);
Bootstrap.install(this, settings);
}
示例14: init
import de.agilecoders.wicket.core.Bootstrap; //导入依赖的package包/类
@Override
protected void init() {
// should be always called first
super.init();
Bootstrap.install(this);
getComponentInstantiationListeners().add(
new SpringComponentInjector(this));
}
示例15: 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));
}