Package org.pushingpixels.flamingo.api.ribbon

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


  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

Related Classes of org.pushingpixels.flamingo.api.ribbon.RibbonApplicationMenuEntryPrimary

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.