Package org.pushingpixels.flamingo.api.common.popup.PopupPanelManager

Examples of org.pushingpixels.flamingo.api.common.popup.PopupPanelManager.PopupInfo


          // collect key tips of all controls in the relevant popup
          // panel
          List<PopupInfo> popups = PopupPanelManager.defaultManager()
              .getShownPath();
          if (popups.size() > 0) {
            PopupInfo last = popups.get(popups.size() - 1);
            if (last.getPopupOriginator() == appMenuButton) {
              JPopupPanel popupPanel = last.getPopupPanel();
              KeyTipChain chain = new KeyTipChain(popupPanel);
              chain.parent = appMenuButtonLink.traversal;
              populateChain(last.getPopupPanel(), chain);
              // popupPanel.putClientProperty(KEYTIP_MANAGER,
              // KeyTipManager.this);
              return chain;
            }
          }
View Full Code Here


            // collect key tips of all controls in the relevant
            // popup panel
            List<PopupInfo> popups = PopupPanelManager
                .defaultManager().getShownPath();
            if (popups.size() > 0) {
              PopupInfo last = popups.get(popups.size() - 1);
              JPopupPanel popupPanel = last.getPopupPanel();
              KeyTipChain chain = new KeyTipChain(popupPanel);
              populateChain(last.getPopupPanel(), chain);
              chain.parent = link.traversal;
              return chain;
            }
            return null;
          }
View Full Code Here

          // collect key tips of all controls in the relevant popup
          // panel
          List<PopupInfo> popups = PopupPanelManager.defaultManager()
              .getShownPath();
          if (popups.size() > 0) {
            PopupInfo last = popups.get(popups.size() - 1);
            // if (last.getPopupOriginator() == cb) {
            JPopupPanel popupPanel = last.getPopupPanel();
            // special case - application menu
            if (popupPanel instanceof JRibbonApplicationMenuPopupPanel) {
              JRibbonApplicationMenuPopupPanel appMenuPopupPanel = (JRibbonApplicationMenuPopupPanel) popupPanel;
              // check whether there are entries at level 2
              JPanel level1 = appMenuPopupPanel.getPanelLevel1();
              JPanel level2 = appMenuPopupPanel.getPanelLevel2();
              if (level2.getComponentCount() > 0) {
                KeyTipChain chain = new KeyTipChain(level2);
                populateChain(level2, chain);
                chain.parent = link.traversal;
                return chain;
              } else {
                KeyTipChain chain = new KeyTipChain(level1);
                populateChain(level1, chain);
                chain.parent = link.traversal;
                return chain;
              }
            } else {
              KeyTipChain chain = new KeyTipChain(popupPanel);
              populateChain(last.getPopupPanel(), chain);
              chain.parent = link.traversal;
              return chain;
            }
            // popupPanel.putClientProperty(KEYTIP_MANAGER,
            // KeyTipManager.this);
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.common.popup.PopupPanelManager.PopupInfo

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.