Examples of KongaMenuItem


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

        Action action = treeMapper.getPageAction(actionId);
        if (action == null) {
            return;
        }
        JMenuItem item = (action instanceof ToggleAction) ? new ToggleActionCheckBoxMenuItem((ToggleAction) action) :
            new KongaMenuItem(action);
        if (nameOverride != null) {
            item.setText(nameOverride);
        }
        menu.add(item);
    }
View Full Code Here

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

    private JMenuItem createSingleActionMenuItem(List<Action> actions) {
        assert actions.size() == 1;
        Action a = actions.get(0);
        String name = menuText + " " + a.getValue(Action.NAME);
        a.putValue(Action.NAME, name);
        return new KongaMenuItem(a);
    }
View Full Code Here

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

        menu.setIcon(icon);
        if (actions.isEmpty()) {
            menu.add(getEmptyItem());
        } else {
            for (Action a : actions) {
                menu.add(new KongaMenuItem(a));
            }
        }
        return menu;
    }
View Full Code Here

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

            if (id == null) {
                items.add(null);
            } else {
                Action action = page.getPageAction(id);
                if (action != null) {
                    items.add(new KongaMenuItem(action));
                }
            }
        }
        return items;
    }
View Full Code Here

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

        }

        private JMenuItem createMenuItem(TransformationPage page) {
            ApplicationAction action = page.getPageAction(actionId);
            if (action != null && action.isSupported()) {
                return new KongaMenuItem(action);
            }
            return null;
        }
View Full Code Here

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

        List<JMenuItem> items = Lists.newArrayList();
        for (ToggleAction a : individualActions.values()) {
            items.add(new ToggleActionCheckBoxMenuItem(a));
        }
        items.add(null);
        items.add(new KongaMenuItem(hideAll));
        items.add(new KongaMenuItem(showAll));
        return items;
    }
View Full Code Here

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

    }

    private void addPageAction(String id, List<JMenuItem> items) {
        ApplicationAction action = page.getPageAction(id);
        if (action != null && action.isSupported()) {
            items.add(new KongaMenuItem(action));
        }
    }
View Full Code Here

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

    private void addActions(String... ids) {
        for (String id : ids) {
            Action action = page.getPageAction(id);
            if (action != null) {
                menu.add(new KongaMenuItem(action));
            }
        }
    }
View Full Code Here

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

        ta.setFont(font);
    }

    private void addContextMenuItems(ExpressionArea area) {
        if (testAction != null) {
            area.addToContextMenu(new KongaMenuItem(testAction));
        }
        FunctionMenu funcMenu = new FunctionMenu(area, area.supportsInstanceFunctions());
        area.addToContextMenu(funcMenu.getMenu());
        if (project != null) {
            DataElementsMenu deMenu = new DataElementsMenu(project.getGlobalDataElements(), area);
            area.addToContextMenu(deMenu.getMenu());
        }
        area.addToContextMenu(null);
        area.addToContextMenu(new ToggleActionCheckBoxMenuItem(showLineNumberAction));
        area.addToContextMenu(new KongaMenuItem(gotoLineAction));
        area.addToContextMenu(new KongaMenuItem(toggleCommentAction));
        area.addToContextMenu(null);
    }
View Full Code Here

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

    private void addRecentProject(ProjectLocation loc) {
        int index = contribution.size() + 1;
        if (index <= 10) {
            Action action = new LoadProjectAction(loc, index);
            contribution.addItem(new KongaMenuItem(action));
        }
    }
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.