Package net.laubenberger.bogatyr.view.swing

Examples of net.laubenberger.bogatyr.view.swing.MenuItem


    popup.removeAll();

    final List<JMenu> menuItems = controller.getControllerModule().getMenuItems();

    if (null == menuItems) {
      final JMenuItem mi = new MenuItem(localizer.getValue(HelperResource.RES_LABEL_MODULES_NOT_FOUND), controller.getScaledIcon(Icon.ALERT));
      mi.setEnabled(false);
      popup.add(mi);
    } else if (menuItems.isEmpty()) {
      final JMenuItem mi = new MenuItem(localizer.getValue(HelperResource.RES_LABEL_MODULES_NOT_ACTIVE), controller.getScaledIcon(Icon.ALERT));
      mi.setEnabled(false);
      popup.add(mi);
    } else {
      for (final JMenu menu : menuItems) {
        popup.add(menu);
      }
View Full Code Here

TOP

Related Classes of net.laubenberger.bogatyr.view.swing.MenuItem

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.