Examples of RibbonApplicationMenuEntryPrimary


Examples of org.jvnet.flamingo.ribbon.RibbonApplicationMenuEntryPrimary

    /**
     * Ribbon Application Menu settings
     */
    protected void configureApplicationMenu() {
        RibbonApplicationMenuEntryPrimary amEntryDashboard = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "dashboard.png"))),
                I18n.CUSTOMERS.getString("Action.Dashboard"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenDashboard();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryDashboard.setActionKeyTip("D");

        RibbonApplicationMenuEntryPrimary amEntryCustomers = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "customer.png"))),
                I18n.CUSTOMERS.getString("Action.Customers"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenCustomers();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryCustomers.setActionKeyTip("C");

        RibbonApplicationMenuEntryPrimary amEntryCategories = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "category.png"))),
                I18n.CUSTOMERS.getString("Action.Categories"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenCategories();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryCategories.setActionKeyTip("A");

        RibbonApplicationMenuEntryPrimary amEntryCountries = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "country.png"))),
                I18n.CUSTOMERS.getString("Action.Countries"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        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"),
View Full Code Here

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

      final private String menuName = TextUtils.getText(attributes.getProperty("name_ref"));

      @Override
      public void contribute(RibbonBuildContext context, ARibbonContributor parent) {
        RibbonApplicationMenuEntryPrimary primeEntry = new RibbonApplicationMenuEntryPrimary(null, menuName,
            null, CommandButtonKind.POPUP_ONLY);
        primeEntry.setRolloverCallback(getCallback(primeEntry));
        parent.addChild(primeEntry,
            new ChildProperties(parseOrderSettings(attributes.getProperty("orderPriority", ""))));
      }

      @Override
View Full Code Here

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

  public static RibbonApplicationMenuEntryPrimary createMenuEntry(final AFreeplaneAction action, CommandButtonKind kind) {
    String title = ActionUtils.getActionTitle(action);
    ResizableIcon icon = ActionUtils.getActionIcon(action);

    RibbonApplicationMenuEntryPrimary entry = new RibbonApplicationMenuEntryPrimary(icon, title, new RibbonActionContributorFactory.RibbonActionListener(action), kind);
    return entry;
  }
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.