Package org.pushingpixels.flamingo.internal.ui.ribbon.appmenu

Examples of org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.JRibbonApplicationMenuButton


    this.ribbon.setLayout(createLayoutManager());

    this.syncRibbonState();

    this.applicationMenuButton = new JRibbonApplicationMenuButton(
        this.ribbon);
    this.syncApplicationMenuTips();
    this.ribbon.add(applicationMenuButton);
    Window windowAncestor = SwingUtilities.getWindowAncestor(this.ribbon);
    if (windowAncestor instanceof JRibbonFrame) {
View Full Code Here


   *
   * @param ribbonFrame
   *            the ribbon frame containing the application icon
   */
  public static void updateRibbonFrameIconImages(JRibbonFrame ribbonFrame) {
    JRibbonApplicationMenuButton appMenuButton = getApplicationMenuButton(ribbonFrame);
    if (appMenuButton == null) {
      return;
    }

    ResizableIcon appIcon = ribbonFrame.getApplicationIcon();
    if (appIcon != null) {
      appMenuButton.setIcon(appIcon);
    }
  }
View Full Code Here

    if (comp instanceof JRibbonApplicationMenuButton)
      return (JRibbonApplicationMenuButton) comp;
    if (comp instanceof Container) {
      Container cont = (Container) comp;
      for (int i = 0; i < cont.getComponentCount(); i++) {
        JRibbonApplicationMenuButton result = getApplicationMenuButton(cont
            .getComponent(i));
        if ((result != null) && result.isVisible())
          return result;
      }
    }
    return null;
  }
View Full Code Here

    this.ribbon.setLayout(createLayoutManager());

    this.syncRibbonState();

    this.applicationMenuButton = new JRibbonApplicationMenuButton(
        this.ribbon);
    this.syncApplicationMenuTips();
    this.ribbon.add(applicationMenuButton);
    Window windowAncestor = SwingUtilities.getWindowAncestor(this.ribbon);
    if (windowAncestor instanceof JRibbonFrame) {
View Full Code Here

    // root chain - application menu button,
    // taskbar panel components and task toggle buttons
    KeyTipChain root = new KeyTipChain(ribbon);

    // application menu button
    final JRibbonApplicationMenuButton appMenuButton = FlamingoUtilities
        .getApplicationMenuButton(ribbonFrame);
    if ((appMenuButton != null)
        && (ribbon.getApplicationMenuKeyTip() != null)) {
      final KeyTipLink appMenuButtonLink = new KeyTipLink();
      appMenuButtonLink.comp = appMenuButton;
      appMenuButtonLink.keyTipString = ribbon.getApplicationMenuKeyTip();
      appMenuButtonLink.prefAnchorPoint = appMenuButton.getUI()
          .getKeyTipAnchorCenterPoint();
      appMenuButtonLink.onActivated = new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          appMenuButton.doPopupClick();
        }
      };
      appMenuButtonLink.enabled = true;
      appMenuButtonLink.traversal = new KeyTipLinkTraversal() {
        @Override
View Full Code Here

    this.ribbon.setLayout(createLayoutManager());

    this.syncRibbonState();

    this.applicationMenuButton = new JRibbonApplicationMenuButton(
        this.ribbon);
    this.syncApplicationMenuTips();
    this.ribbon.add(applicationMenuButton);
    Window windowAncestor = SwingUtilities.getWindowAncestor(this.ribbon);
    if (windowAncestor instanceof JRibbonFrame) {
View Full Code Here

   
    ribbon.add(ribbon.getProjectViews());

   
   
    this.applicationMenuButton = new JRibbonApplicationMenuButton(
        this.ribbon);
    this.syncApplicationMenuTips();
    this.ribbon.add(applicationMenuButton);
    Window windowAncestor = SwingUtilities.getWindowAncestor(this.ribbon);
    if (windowAncestor instanceof JRibbonFrame) {
View Full Code Here

    }
    return false;
  }

  public static void updateRibbonFrameIconImages(JRibbonFrame ribbonFrame) {
    JRibbonApplicationMenuButton appMenuButton = getApplicationMenuButton(ribbonFrame);
    if (appMenuButton == null) {
      return;
    }

    ResizableIcon appIcon = ribbonFrame.getApplicationIcon();
    if (appIcon != null) {
      appMenuButton.setIcon(appIcon);
    }
  }
View Full Code Here

    if (comp instanceof JRibbonApplicationMenuButton)
      return (JRibbonApplicationMenuButton) comp;
    if (comp instanceof Container) {
      Container cont = (Container) comp;
      for (int i = 0; i < cont.getComponentCount(); i++) {
        JRibbonApplicationMenuButton result = getApplicationMenuButton(cont
            .getComponent(i));
        if ((result != null) && result.isVisible())
          return result;
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.JRibbonApplicationMenuButton

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.