Package de.agilecoders.wicket.themes.markup.html.bootstrap

Examples of de.agilecoders.wicket.themes.markup.html.bootstrap.BootstrapThemeTheme


    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);
            } else {
                theme = BootswatchTheme.valueOf(themeName);
            }
        } catch (Exception x) {
            LOG.warn("Cannot find a theme with name '"+themeName+"' in all available theme providers: " + x.getMessage());
            // fallback to Bootstrap default theme if the parsing by name failed somehow
            theme = new BootstrapThemeTheme();
        }
        return theme;
    }
View Full Code Here


        tag.setName("li");
        Attributes.addClass(tag, "dropdown");
    }

    private List<String> getThemeNames() {
        final BootstrapThemeTheme bootstrapTheme = new BootstrapThemeTheme();
        List<BootswatchTheme> bootswatchThemes = Arrays.asList(BootswatchTheme.values());
//        List<VegibitTheme> vegibitThemes = Arrays.asList(VegibitTheme.values());

        List<String> allThemes = new ArrayList<>();
        allThemes.add(bootstrapTheme.name());

        for (ITheme theme : bootswatchThemes) {
            allThemes.add(theme.name());
        }
View Full Code Here

TOP

Related Classes of de.agilecoders.wicket.themes.markup.html.bootstrap.BootstrapThemeTheme

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.