Package de.agilecoders.wicket.core.settings

Examples of de.agilecoders.wicket.core.settings.ITheme


        }
    }

    private void setActiveTheme(String activeTheme) {
        IBootstrapSettings bootstrapSettings = Bootstrap.getSettings();
        ITheme theme = getThemeByName(activeTheme);
        getActiveThemeProvider().setActiveTheme(theme);
        if (theme instanceof BootstrapThemeTheme) {
            bootstrapSettings.setThemeProvider(new SingleThemeProvider(theme));
        } else if (theme instanceof BootswatchTheme) {
            bootstrapSettings.setThemeProvider(new BootswatchThemeProvider((BootswatchTheme) theme));
View Full Code Here


            bootstrapSettings.setThemeProvider(new VegibitThemeProvider((VegibitTheme) theme));
        }
    }

    private ITheme getThemeByName(String themeName) {
        ITheme theme;
        try {
            if ("bootstrap-theme".equals(themeName)) {
                theme = new BootstrapThemeTheme();
            } else if (themeName.startsWith("veg")) {
                theme = VegibitTheme.valueOf(themeName);
View Full Code Here

     *
     * @param settings       the bound {@link IBootstrapSettings}
     * @param headerResponse the current {@link IHeaderResponse}
     */
    public void renderHead(final IBootstrapSettings settings, final IHeaderResponse headerResponse) {
        final ITheme theme = settings.getActiveThemeProvider().getActiveTheme();

        theme.renderHead(headerResponse);

        contributeIE8Dependencies(headerResponse);
    }
View Full Code Here

TOP

Related Classes of de.agilecoders.wicket.core.settings.ITheme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.