de.agilecoders.wicket.core.Bootstrap Java Examples

The following examples show how to use de.agilecoders.wicket.core.Bootstrap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WicketApplicationBase.java    From webanno with Apache License 2.0 6 votes vote down vote up
protected void initBootstrap()
{
    SassCompilerOptionsFactory sassOptionsFactory = () -> {
        Options options = new Options();
        options.setOutputStyle(DEPLOYMENT.equals(getConfigurationType()) ? EXPANDED : NESTED);
        return options;
    };
    
    WicketWebjars.install(this);

    BootstrapSass.install(this, sassOptionsFactory);
    // Install a customized cache manager which can deal with SCSS files in JARs
    SassCacheManager cacheManager = new SassCacheManager(sassOptionsFactory);
    cacheManager.install(this);

    
    Bootstrap.install(this);
    
    IBootstrapSettings settings = Bootstrap.getSettings(this);
    settings.setCssResourceReference(CustomBootstrapSassReference.get());
}
 
Example #2
Source File: BaseResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@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 PerfectScrollbarResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CookiesResourceReference()));
	
	dependencies.add(CssHeaderItem.forReference(new BaseCssResourceReference()));
	
	return dependencies;
}
 
Example #3
Source File: BaseCssResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(Bootstrap.getSettings().getCssResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new FontExtResourceReference()));
	return dependencies;
}
 
Example #4
Source File: BootstrapAwareJQueryUIJavaScriptResourceReference.java    From webanno with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #5
Source File: ToDoApplication.java    From isis-app-todoapp with Apache License 2.0 5 votes vote down vote up
@Override
protected void init() {
    super.init();

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

    settings.setActiveThemeProvider(new UserSettingsThemeProvider(settings));
}
 
Example #6
Source File: SyncopeEnduserCss.java    From syncope with Apache License 2.0 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
    final List<HeaderItem> dependencies = new ArrayList<>();
    dependencies.add(CssHeaderItem.forReference(Bootstrap.getSettings().getCssResourceReference()));
    dependencies.addAll(super.getDependencies());
    return dependencies;
}
 
Example #7
Source File: AdminLTECssResourceReference.java    From syncope with Apache License 2.0 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
    final List<HeaderItem> dependencies = new ArrayList<>();
    dependencies.add(CssHeaderItem.forReference(Bootstrap.getSettings().getCssResourceReference()));
    dependencies.addAll(super.getDependencies());
    return dependencies;
}