Package org.jitterbit.ui.widget.popup

Examples of org.jitterbit.ui.widget.popup.KongaPopupMenu


        b.setToolTipText("Options for hiding nodes in the source tree");
        return b;
    }

    private JPopupMenu buildForSourceTree() {
        JPopupMenu popup = new KongaPopupMenu();
        addMenuItem(popup, ShowMappedSourceNodesAction.ID, HIDE_UNMAPPED_NODES);
        addMenuItem(popup, ShowSourceDataNodesAction.ID, SHOW_DATA_NODES_ONLY);
        addSimpleNodeDisplaySwitch(popup, treeMapper.m_sourceTreeComponent);
        addSimpleXmlElementDisplaySwitchIfSupported(popup, treeMapper.m_sourceTreeComponent);
        return popup;
View Full Code Here


        b.setToolTipText("Options for hiding nodes in the target tree");
        return b;
    }

    private JPopupMenu buildForTargetTree() {
        JPopupMenu popup = new KongaPopupMenu();
        addMenuItem(popup, ShowMappedTargetNodesAction.ID, HIDE_UNMAPPED_NODES);
        addMenuItem(popup, ShowTargetDataNodesAction.ID, SHOW_DATA_NODES_ONLY);
        addSimpleNodeDisplaySwitch(popup, treeMapper.m_targetTreeComponent);
        addSimpleXmlElementDisplaySwitchIfSupported(popup, treeMapper.m_targetTreeComponent);
        return popup;
View Full Code Here

        this.controller = controller;
        this.actionMenuProvider = new OperationNodeMenuProviderImpl(controller);
    }

    public JPopupMenu createMenu(OperationWrapperNode opNode) {
        KongaPopupMenu pm = new KongaPopupMenu();
        actionMenuProvider.provideActionItems(opNode, pm);
        pm.add(new ToggleOperationNodeExpansionAction(controller, opNode));
        return pm;
    }
View Full Code Here

        public boolean popupMenuRequested(final Component source, final int x, final int y) {
            if (actionProvider != null) {
                TreePath path = ((JTree) source).getClosestPathForLocation(x, y);
                if (path != null) {
                    ((JTree) source).setSelectionPath(path);
                    KongaPopupMenu menu = new KongaPopupMenu();
                    menu.addActions(actionProvider.get());
                    menu.show(source, x, y);
                }
            }
            return true;
        }
View Full Code Here

        return new ScheduleMenuBuilder(controller).buildPopupMenu(node);
    }

    @Override
    public KongaPopupMenu getActionMenuFor(OperationWrapperNode node) {
        KongaPopupMenu menu = new KongaPopupMenu();
        provideActionItems(node, menu);
        return menu;
    }
View Full Code Here

        listController.setPopupMenuRequestHandler(new PopupMenuRequestHandler() {

            @Override
            public boolean popupMenuRequested(Component source, int x, int y) {
                if (deleteAction != null) {
                    KongaPopupMenu popup = new KongaPopupMenu();
                    popup.add(deleteAction);
                    popup.show(source, x, y);
                    return true;
                }
                return false;
            }
        });
View Full Code Here

    public boolean popupMenuRequested(final Component source, final int x, final int y) {
        if (actionProvider != null) {
            int index = ((JList) source).locationToIndex(new Point(x, y));
            if (index >= 0) {
                ((JList) source).setSelectedIndex(index);
                KongaPopupMenu menu = new KongaPopupMenu();
                menu.addActions(actionProvider.get());
                menu.show(source, x, y);
            }
        }
        return true;
    }
View Full Code Here

        TreeMapper treeMapper = page.getTreeMapper();
        treeMapper.showPopupMenu(popup);
    }

    private JPopupMenu createPopup() {
        KongaPopupMenu pm = new KongaPopupMenu();
        addTestActions(pm);
        pm.addSeparator();
        addShowDataNodes(pm);
        return pm;
    }
View Full Code Here

   
    private JPopupMenu createMenuForOperationActivityEdge(OperationActivityEdge edge) {
        JPopupMenu popup = null;
        Route route = edge.getRoute();
        if (route.getType() != RouteType.SCRIPTED) {
            popup = new KongaPopupMenu();
            popup.add(new DeleteRouteAction(controller, route));
            return popup;
        }
        return popup;
    }
View Full Code Here

        private JPopupMenu getPopupMenu(ClassNameNode node) {
            if (node.getChildAt(0) instanceof UnknownStructureNode) {
                return null;
            }
            KongaPopupMenu pm = new KongaPopupMenu();
            pm.addActions(new SelectRequiredAction(node),
                            tree.getCheckAllAction(node),
                            tree.getUncheckAllAction(node),
                            setAuxClassesAction,
                            setExtendedAttributesAction);
            return pm;
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.popup.KongaPopupMenu

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.