Package br.com.jteam.jfcm.gui.menu

Examples of br.com.jteam.jfcm.gui.menu.AbstractMenuItemFactory.create()


        PresentationFile<?> file = fileIterator.next();
        String text = ++i + " - " + file.getPath();
        JMenuItem historyItem;
        ShowHistoryFileContentListener listener =
          new ShowHistoryFileContentListener(adapter.openZipContent(file.getPath()));
        historyItem = itemFactory.create(text, String.valueOf(i).charAt(0), listener);
        historyFileMenuItens.add(historyItem);
      }
    } catch (FileListContentAdapterException e) {
      JOptionPane.showMessageDialog(null, BaseBundle.getValue("error.openning.file"));
    }
View Full Code Here


  public void createMenuItens()
  {
    AbstractMenuItemFactory itemFactory =
      AbstractMenuItemFactory.getFactory(MenuType.MENU_ITEM);
    openMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.file.item.open"), BaseBundle.getValue(
        "menu.file.item.open.mnemonic").charAt(0), new OpenFileListener(adapter));
    exitMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.file.item.exit"), BaseBundle.getValue(
        "menu.file.item.exit.mnemonic").charAt(0), new ExitApplicationListener());
    aboutMenuItem =
View Full Code Here

      AbstractMenuItemFactory.getFactory(MenuType.MENU_ITEM);
    openMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.file.item.open"), BaseBundle.getValue(
        "menu.file.item.open.mnemonic").charAt(0), new OpenFileListener(adapter));
    exitMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.file.item.exit"), BaseBundle.getValue(
        "menu.file.item.exit.mnemonic").charAt(0), new ExitApplicationListener());
    aboutMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.help.item.about"), BaseBundle.getValue(
        "menu.help.item.about.mnemonic").charAt(0), new OpenAboutDialogListener());
  }
View Full Code Here

        "menu.file.item.open.mnemonic").charAt(0), new OpenFileListener(adapter));
    exitMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.file.item.exit"), BaseBundle.getValue(
        "menu.file.item.exit.mnemonic").charAt(0), new ExitApplicationListener());
    aboutMenuItem =
      itemFactory.create(BaseBundle.getValue("menu.help.item.about"), BaseBundle.getValue(
        "menu.help.item.about.mnemonic").charAt(0), new OpenAboutDialogListener());
  }

  public void createMenus()
  {
View Full Code Here

  public void createMenus()
  {
    AbstractMenuItemFactory menuFactory = AbstractMenuItemFactory.getFactory(MenuType.MENU);
    fileMenu =
      (JMenu) menuFactory.create(BaseBundle.getValue("menu.file"), BaseBundle.getValue(
        "menu.file.mnemonic").charAt(0), null);
    helpMenu =
      (JMenu) menuFactory.create(BaseBundle.getValue("menu.help"), BaseBundle.getValue(
        "menu.help.mnemonic").charAt(0), null);
    fileMenu.add(openMenuItem);
View Full Code Here

    AbstractMenuItemFactory menuFactory = AbstractMenuItemFactory.getFactory(MenuType.MENU);
    fileMenu =
      (JMenu) menuFactory.create(BaseBundle.getValue("menu.file"), BaseBundle.getValue(
        "menu.file.mnemonic").charAt(0), null);
    helpMenu =
      (JMenu) menuFactory.create(BaseBundle.getValue("menu.help"), BaseBundle.getValue(
        "menu.help.mnemonic").charAt(0), null);
    fileMenu.add(openMenuItem);
    fileMenu.add(exitMenuItem);
    helpMenu.add(aboutMenuItem);
    if (!historyFileMenuItens.isEmpty()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.