Examples of RibbonApplicationMenuEntryFooter


Examples of org.jvnet.flamingo.ribbon.RibbonApplicationMenuEntryFooter

                        onOpenCountries();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryCountries.setActionKeyTip("O");

        RibbonApplicationMenuEntryFooter amEntryExit = new RibbonApplicationMenuEntryFooter(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS16 + "exit.png"))),
                I18n.COMMON.getString("Action.Exit"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        exitForm(null);
                    }
                });
        amEntryExit.setActionKeyTip("X");

        RibbonApplicationMenu applicationMenu = new RibbonApplicationMenu();
        applicationMenu.addMenuEntry(amEntryDashboard);
        applicationMenu.addMenuEntry(amEntryCustomers);
        applicationMenu.addMenuEntry(amEntryCategories);
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonApplicationMenuEntryFooter

          AFreeplaneAction action = context.getBuilder().getMode().getAction(key);
          if(action != null) {
            String title = ActionUtils.getActionTitle(action);
            ResizableIcon icon = ActionUtils.getActionIcon(action);
            ActionListener listener = new RibbonActionContributorFactory.RibbonActionListener(action);
            final RibbonApplicationMenuEntryFooter entry = new RibbonApplicationMenuEntryFooter(icon, title, listener);
            KeyStroke ks = context.getBuilder().getAcceleratorManager().getAccelerator(key);
            if(ks != null) {
              RichTooltip tip = RibbonActionContributorFactory.getRichTooltip(action, ks);
              if(tip != null) {
                entry.setActionRichTooltip(tip);
              }
            }
            parent.addChild(entry, new ChildProperties(parseOrderSettings(attributes.getProperty("orderPriority", ""))));
          }
        }
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.