Package org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.action

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.action.ActionMenuItem


      if (actionPlugin instanceof ExportActionPlugin)
      {
        final ExportActionPlugin exportPlugin = (ExportActionPlugin) actionPlugin;
        final ExportAction action = new ExportAction(exportPlugin, pane);
        menu.add(new ActionMenuItem(action));
        count += 1;
      }
      else if (actionPlugin instanceof ControlActionPlugin)
      {
        final ControlActionPlugin controlPlugin = (ControlActionPlugin) actionPlugin;
        final ControlAction action = new ControlAction(controlPlugin, pane);
        menu.add(new ActionMenuItem(action));
        count += 1;
      }
      else if (actionPlugin instanceof ZoomListActionPlugin)
      {
        // todo: This is a memleak source ..
View Full Code Here


    final ZoomAction[] zoomActions = new ZoomAction[zoomFactors.length];
    for (int i = 0; i < zoomFactors.length; i++)
    {
      final double factor = zoomFactors[i];
      zoomActions[i] = new ZoomAction(factor, pane);
      zoom.add(new ActionMenuItem(zoomActions[i]));
    }
    return zoomActions;
  }
View Full Code Here

//Set up the lone menu.
    final JMenu menu = new JMenu("Document");
    menu.setMnemonic(KeyEvent.VK_D);
    menuBar.add(menu);

    menu.add(new ActionMenuItem(new NewFrameAction()));
    menu.add(new ActionMenuItem(getPreviewAction()));
    menu.addSeparator();
    menu.add(new ActionMenuItem(getCloseAction()));

    final JMenu helpmenu = new JMenu("Help");
    helpmenu.setMnemonic(KeyEvent.VK_H);
    helpmenu.add(new ActionMenuItem(getAboutAction()));
    return menuBar;
  }
View Full Code Here

  public Accelerators()
      throws HeadlessException
  {
    JMenuBar menuBar = new JMenuBar();
    final JMenu c = new JMenu("Fha");
    c.add(new ActionMenuItem (new MyAction()));
    c.add(new ActionMenuItem (new MyAction()));
    menuBar.add(c);

    setJMenuBar(menuBar);
  }
View Full Code Here

  protected JMenuBar createMenuBar()
  {
    final JMenuBar mb = new JMenuBar();
    final JMenu fileMenu = createJMenu("menu.file");

    final JMenuItem previewItem = new ActionMenuItem(getPreviewAction());
    final JMenuItem exitItem = new ActionMenuItem(getCloseAction());

    fileMenu.add(previewItem);
    fileMenu.addSeparator();
    fileMenu.add(exitItem);
    mb.add(fileMenu);

    // then the help menu
    final JMenu helpMenu = createJMenu("menu.help");
    helpMenu.add(new ActionMenuItem(aboutAction));
    mb.add(helpMenu);
    return mb;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.action.ActionMenuItem

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.