Examples of DropdownButton


Examples of com.github.gwtbootstrap.client.ui.DropdownButton

                if ( widgetList.isEmpty() ) {
                    return null;
                }

                gwtItem = new DropdownButton( groups.getCaption() ) {{
                    setSize( MINI );
                    for ( final Widget _item : widgetList ) {
                        add( _item );
                    }
                }};
View Full Code Here

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

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

                                .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

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

    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

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

        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

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

        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

Examples of jetbrains.communicator.idea.actions.DropDownButton

    ActionGroup treeActions = (ActionGroup) myActionManager.getAction("IDEtalk_Tree");

    JPanel toolbarPanel = new JPanel();
    toolbarPanel.setLayout(new BoxLayout(toolbarPanel, BoxLayout.X_AXIS));
    toolbarPanel.add(DropDownButton.wrap(new DropDownButton(new FindUsersAction(), IconUtil.getAddIcon())));
    toolbarPanel.add(createToolbar(toolbarActions).getComponent());

    toolbarPanel.add(Box.createHorizontalStrut(10));
    toolbarPanel.add(new SeparatorComponent(JBColor.LIGHT_GRAY, SeparatorOrientation.VERTICAL));
    toolbarPanel.add(Box.createHorizontalStrut(3));
View Full Code Here

Examples of net.sourceforge.processdash.ui.lib.DropDownButton

      List importActions = ExtensionManager.getExecutableExtensions(
              "defect-importer", dashboard);
      if (importActions.isEmpty())
          return null;

      DropDownButton result = new DropDownButton(resources
              .getString("Log.Import_Button"));
      result.setMainButtonBehavior(DropDownButton.OPEN_DROP_DOWN_MENU);
      result.getMenu().getPopupMenu().addPopupMenuListener(new PopupMenuListener() {
        public void popupMenuCanceled(PopupMenuEvent e) {}
        public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {}
        public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
            reupdateImportActions();
        }});
     
      for (Iterator i = importActions.iterator(); i.hasNext();) {
          Action a = (Action) i.next();
          if (a.getValue(IMPORT_ACTION_INVALID) != null)
              i.remove();
          else
              result.getMenu().add(a);
      }

      if (result.isEmpty())
          return null;
      else
          return result;
  }
View Full Code Here

Examples of net.sourceforge.processdash.ui.lib.DropDownButton

    private JPanel constructFilterPanel() {
        JPanel retPanel = new JPanel(false);
        retPanel.setLayout(new BoxLayout(retPanel, BoxLayout.X_AXIS));
        retPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
        DropDownButton button;
        JLabel label;

        retPanel.add(Box.createHorizontalGlue());

        addTimeFormatControl(retPanel);
        retPanel.add(new JLabel("          "));

        label = new JLabel(getResource("Filter.Label") + " ");
        retPanel.add(label);
        retPanel.add(Box.createHorizontalStrut(5));

        addScrollButton(retPanel, "Filter.Scroll_Backward",
                "scrollFilterBackward");
        fromDate = addDateField(retPanel, "Filter.From");
        toDate = addDateField(retPanel, "Filter.To");
        addScrollButton(retPanel, "Filter.Scroll_Forward",
                "scrollFilterForward");

        button = new DropDownButton(getResource("Filter.Apply"));
        button.setRunFirstMenuOption(false);
        button.getButton().addActionListener(
                createActionListener("applyFilter"));

        JMenu menu = button.getMenu();
        addFilterMenuItem(menu, "Filter.Today", "filterToday");
        addFilterMenuItem(menu, "Filter.Week", "filterThisWeek");
        menu.add(createWeekFilterStartDaySubmenu());
        addFilterMenuItem(menu, "Filter.Month", "filterThisMonth");
        menu.addSeparator();
View Full Code Here

Examples of net.sourceforge.processdash.ui.lib.DropDownButton

            actions = new ArrayList<AbstractChartItemAction>();

            JButton revertButton = new JButton(new RevertSettingsAction(item,
                    actions));

            DropDownButton saveButton = new DropDownButton("");
            saveButton.setRunFirstMenuOption(false);
            saveButton.getMenu().add(new SaveSettingsAsAction(item, actions));
            saveButton.getButton().setAction(
                new SaveSettingsAction(item, actions));

            return BoxUtils.hbox(BoxUtils.GLUE, revertButton, BoxUtils.GLUE,
                saveButton, BoxUtils.GLUE);
        }
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.