Examples of BootstrapTheme


Examples of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme

*/
public class SingleThemeProviderTest {

    @Test
    public void availableThemesReturnsSingleTheme() throws Exception {
        ITheme theme = new BootstrapTheme();
        ThemeProvider provider = new SingleThemeProvider(theme);

        assertThat(provider.available().size(), is(1));
        assertThat(provider.available(), hasItem(theme));
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme

        assertThat(provider.available(), hasItem(theme));
    }

    @Test
    public void defaultThemeReturnsSingleTheme() throws Exception {
        ITheme theme = new BootstrapTheme();
        ThemeProvider provider = new SingleThemeProvider(theme);

        assertThat(provider.defaultTheme(), is(theme));
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme

        assertThat(provider.defaultTheme(), is(theme));
    }

    @Test
    public void byNameReturnsSingleTheme() throws Exception {
        ITheme theme = new BootstrapTheme();
        ThemeProvider provider = new SingleThemeProvider(theme);

        assertThat(provider.byName("a"), is(theme));
        assertThat(provider.byName("b"), is(theme));
        assertThat(provider.byName("c"), is(theme));
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme

     * Construct.
     *
     * @param settings the bootstrap settings
     */
    public DefaultThemeProvider(IBootstrapSettings settings) {
        addDefaultTheme(new BootstrapTheme(settings));
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapTheme

    /**
     * Construct.
     */
    @Deprecated
    public DefaultThemeProvider() {
        addDefaultTheme(new BootstrapTheme());
    }
View Full Code Here

Examples of org.molgenis.ui.theme.bootstrap.BootstrapTheme

    Form f = new Form()
    .add(new StringInput("name"))
    .add(new Button("helloWorld").setLabel("Say hello").setIcon(Icon.SEARCH));

    // render
    BaseTheme r = new BootstrapTheme();
    String result = r.render(f);

    System.out.println(result);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.