Java 类com.intellij.ui.ComponentWithMnemonics 实例源码

项目:intellij-ce-playground    文件:IdeKeyEventDispatcher.java   
private static boolean hasMnemonicInBalloons(Container container, int code) {
  final Component parent = UIUtil.findUltimateParent(container);
  if (parent instanceof RootPaneContainer) {
    final JLayeredPane pane = ((RootPaneContainer)parent).getLayeredPane();
    for (Component component : pane.getComponents()) {
      if (component instanceof ComponentWithMnemonics && component instanceof Container && hasMnemonic((Container)component, code)) {
        return true;
      }
    }
  }
  return false;
}
项目:tools-idea    文件:IdeKeyEventDispatcher.java   
private static boolean hasMnemonicInBalloons(Container container, int code) {
  final Component parent = UIUtil.findUltimateParent(container);
  if (parent instanceof RootPaneContainer) {
    final JLayeredPane pane = ((RootPaneContainer)parent).getLayeredPane();
    for (Component component : pane.getComponents()) {
      if (component instanceof ComponentWithMnemonics && component instanceof Container && hasMnemonic((Container)component, code)) {
        return true;
      }
    }
  }
  return false;
}
项目:consulo    文件:IdeKeyEventDispatcher.java   
private static boolean hasMnemonicInBalloons(Container container, int code) {
  final Component parent = UIUtil.findUltimateParent(container);
  if (parent instanceof RootPaneContainer) {
    final JLayeredPane pane = ((RootPaneContainer)parent).getLayeredPane();
    for (Component component : pane.getComponents()) {
      if (component instanceof ComponentWithMnemonics && component instanceof Container && hasMnemonic((Container)component, code)) {
        return true;
      }
    }
  }
  return false;
}