Package org.jitterbit.ui.widget.menu

Examples of org.jitterbit.ui.widget.menu.KongaMenuItem


    protected List<JMenuItem> getMenuItems() {
        List<JMenuItem> items = new ArrayList<JMenuItem>();
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_1);
        items.add(null);
        for (Action a : actions) {
            items.add(new KongaMenuItem(a));
        }
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_2);
        items.add(null);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_3);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_4);
View Full Code Here


    @Override
    protected List<JMenuItem> getMenuItems() {
        List<JMenuItem> items = new ArrayList<JMenuItem>();
        for (Action a : actions) {
            items.add(new KongaMenuItem(a));
        }
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_1);
        items.add(null);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_2);
        return items;
View Full Code Here

    @Override
    protected List<JMenuItem> getMenuItems() {
        List<JMenuItem> items = new ArrayList<JMenuItem>();
        for (Action a : actions) {
            items.add(new KongaMenuItem(a));
        }
        items.add(new WindowDisplayModeMenu().getMenu());
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_1);
        return items;
    }
View Full Code Here

    }

    @Override
    public final JMenuItem createMenuItem(ApplicationWindow appWin) {
        Action action = new BeanProxyAction(appWin, viewId, actionId, dictionary);
        return new KongaMenuItem(action);
    }
View Full Code Here

    }

    private void addMenuSwitch(Menu viewMenu, ViewShell shell) {
        MenuContribution viewSwitches = new MenuContribution("ViewMenu.ViewSwitches");
        Action action = shell.getSwitchAction();
        viewSwitches.addItem(new KongaMenuItem(action));
        viewMenu.addExtension(MenuExtensionPoint.EXTENSION_POINT_1, viewSwitches);
    }
View Full Code Here

    /**
     * Creates a <code>KongaMenuItem</code> based on the <code>Action</code>.
     */
    @Override
    public KongaMenuItem createMenuItem(ApplicationWindow appWin) {
        return new KongaMenuItem(action);
    }
View Full Code Here

  public JMenu addMenu(String sLabel){
    return addMenu(sLabel, null);
  }

  public void addAction(Action action) {
      addMenuItemImpl(new KongaMenuItem(action));
  }
View Full Code Here

        ComponentDoubleClickAction.bind(f.getInputComponent(), selectDriverAction);
        return f;
    }

    private void configureDriverFieldContextMenu(DriverInputField f) {
        KongaMenuItem selectDriver = new KongaMenuItem(selectDriverAction);
        selectDriver.setText("&Select Driver...");
        f.getInputComponent().addToContextMenu(selectDriver);
        f.getInputComponent().addToContextMenu(null);
    }
View Full Code Here

    protected void addAdditionalItems(List<JMenuItem> items) {
        // default adds nothing
    }

    protected JMenuItem toItem(Action a){
        return (a != null ? new KongaMenuItem(a) : null);
    }
View Full Code Here

    }

    private void addNonProjectTypes(InterchangeView view, List<JMenuItem> items) {
        JMenu connectMenu = createJitterbitConnectMenu(view);
        for (EntityType t : config.getTopLevelTypes()) {
            KongaMenuItem menuItem = createMenuItem(view, t);
            items.add(menuItem);
        }
        if (connectMenu != null) {
            items.add(connectMenu);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.menu.KongaMenuItem

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.