Package de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown.DropDownButton


        return new Carousel(markupId, images);
    }

    private Component newDropDown(String markupId) {
        return new DropDownButton(markupId, Model.of("Dropdown (#89)"), Model.<IconType>of(GlyphIconType.bookmark)) {
            @Override
            protected List<AbstractLink> newSubMenuButtons(String buttonMarkupId) {
                List<AbstractLink> subMenu = new ArrayList<AbstractLink>();
                subMenu.add(new MenuBookmarkablePageLink<Void>(Javascript.class).setLabel(Model.of("Link")));
                subMenu.add(new NavbarAjaxLink<String>("button", Model.of("Ajax Link")) {
View Full Code Here


                                .setIconType(GlyphIconType.export),
                        newAddonsDropDownButton())
        );
        navbar.addComponents(new NavbarText(navbar.newExtraItemId(), "Plain text").position(Navbar.ComponentPosition.RIGHT));

        DropDownButton dropdown = new NavbarDropDownButton(Model.of("Themes")) {
            @Override
            public boolean isActive(Component item) {
                return false;
            }
View Full Code Here

    Label draggableButton = new Label("open-draggable", "Open Modal Dialog");
    draggableModal.addOpenerAttributesTo(draggableButton);
    add(draggableModal, draggableButton,
        new Code("draggable-code", Model.of("")));

    DropDownButton dropDownButton = new DropDownButton("dropdown",
        Model.of("open-on-hover")) {
      @Override
      protected List<AbstractLink> newSubMenuButtons(String buttonMarkupId) {
        return Lists.<AbstractLink> newArrayList(
            new MenuBookmarkablePageLink<Void>(
                DatePickerPage.class, Model.of("DatePicker"))
                .setIconType(GlyphIconType.time),
            new MenuBookmarkablePageLink<Void>(IssuesPage.class,
                Model.of("Github Issues"))
                .setIconType(GlyphIconType.book),
            new MenuBookmarkablePageLink<Void>(
                ExtensionsPage.class, Model.of("Extensions"))
                .setIconType(GlyphIconType.qrcode));
      }
    };

    dropDownButton.add(new DropDownAutoOpen());
    add(dropDownButton,
        new Code("dropdown-code", Model
            .of("dropDownButton.add(new DropDownAutoOpen());")));

    addTour();
View Full Code Here

        TestPage page = new TestPage();
        NavbarButton<?> buttonUnderTest = new NavbarButton<Object>(TestPage.class, GlyphIconType.adjust);
        page.add(buttonUnderTest);

        List<AbstractLink> buttons = new ArrayList<AbstractLink>();
        DropDownButton dropDownButton1 = new DropDownButton("dropDown", Model.of("")) {
            @Override
            protected List<AbstractLink> newSubMenuButtons(String buttonMarkupId) {
                return new ArrayList<AbstractLink>();
            }
        };
View Full Code Here

        TestPage page = new TestPage();
        final NavbarButton<?> buttonUnderTest = new NavbarButton<Object>(TestPage.class, GlyphIconType.adjust);
        page.add(buttonUnderTest);

        List<AbstractLink> buttons = new ArrayList<AbstractLink>();
        DropDownButton dropDownButton1 = new DropDownButton("dropDown", Model.of("")) {
            @Override
            protected List<AbstractLink> newSubMenuButtons(String buttonMarkupId) {
                return Collections.<AbstractLink>singletonList(buttonUnderTest);
            }
        };
View Full Code Here

TOP

Related Classes of de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown.DropDownButton

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.