Package org.jitterbit.ui.widget.menu

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


    }

    private KongaMenuItem createMenuItem(InterchangeView view, EntityType t) {
        InterchangeActionFactory f = InterchangeActionFactory.getNewEntityFactory(t);
        ApplicationAction a = f.get(view);
        KongaMenuItem menuItem = new KongaMenuItem(a);
        return menuItem;
    }
View Full Code Here


    }

    private void addProject(InterchangeView view, List<JMenuItem> items) {
        items.add(null);
        Action newProject = new NewProjectAction(view.getWindow(), projectManager);
        items.add(new KongaMenuItem(newProject));
    }
View Full Code Here

    private void addMenuItems(ApplicationWindow appWin, JMenu menu) {
        for (String actionId : actionIds) {
            Action action = new BeanProxyAction(appWin, InterchangeView.VIEW_ID, actionId,
                            InterchangeActionDictionary.DICTIONARY);
            menu.add(new KongaMenuItem(action));
        }
    }
View Full Code Here

            menu.disableIfAllItemsAreDisabled();
        }

        private void addItems() {
            for (Action action : actions) {
                addMenuItem(new KongaMenuItem(action));
                items.add(new Item(action));
            }
        }
View Full Code Here

    }

    @Override
    public final JMenuItem createMenuItem(ApplicationWindow appWin) {
        Action action = new BeanProxyAction(appWin, InterchangeView.VIEW_ID, actionId, DebugActionDictionary.DICTIONARY);
        return new KongaMenuItem(action);
    }
View Full Code Here

        return this;
    }

    @Override
    public KongaMenuItem add(String s) {
        KongaMenuItem mi = new KongaMenuItem(s);
        add(mi);
        return mi;
    }
View Full Code Here

                }
                return pcl;
            }
           
        } :
            new KongaMenuItem() {

            @Override
            protected PropertyChangeListener createActionPropertyChangeListener(Action a) {
                PropertyChangeListener pcl = createActionChangeListener(this);
                if (pcl == null) {
View Full Code Here

            addedItems.remove(a);
        }
    }
   
    private JMenuItem createAndAddMenuItem(Action a) {
        JMenuItem mi = new KongaMenuItem(a);
        popup.add(mi);
        return mi;
    }
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.