Package org.jitterbit.ui.widget.popup

Examples of org.jitterbit.ui.widget.popup.KongaPopupMenu.show()


                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


            @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

            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

    public void handleContextMenuRequest(Component source, int x, int y) {
        KongaPopupMenu pm = new KongaPopupMenu();
        Action[] actions = { goNext, goBack, save, null, cancel };
        pm.addActions(actions);
        pm.show(source, x, y);
    }

    public NavigationButtons getToolBar() {
        if (toolbar == null) {
            toolbar = new NavigationButtons(goBack, goNext, save, cancel);
View Full Code Here

            for (SegmentType t2 : SegmentType.values()) {
                pm.add(new Combination(number, t1, t2));
                ++number;
            }
        }
        pm.show(invoker, 50, 50);
    }


    private class Combination extends AbstractAction {
View Full Code Here

        @Override
        public boolean popupMenuRequested(Component source, int x, int y) {
            KongaPopupMenu pm = new KongaPopupMenu();
            pm.addActions(actions.login(), actions.viewDetails(), null, actions.remove());
            pm.show(source, x, y);
            return true;
        }
    }

}
View Full Code Here

        ctrl.install(table);
    }

    private void displayTableContextMenu(Component source, int x, int y) {
        KongaPopupMenu popup = KongaPopupMenu.fromItems(openEntityAction, viewDetailsAction);
        popup.show(source, x, y);
    }

    /**
     * Sets a a filter that filters out those rows that do not match the given condition.
     *
 
View Full Code Here

    }

    private void displayPopupMenu(SystemConsolePage page, int x, int y) {
        KongaPopupMenu pm = new KongaPopupMenu();
        page.populatePopupMenu(pm);
        pm.show(page.getMainPanel(), x, y);
    }
}
View Full Code Here

        }
       
        private void showPopup(MouseEvent e) {
            KongaPopupMenu m = new KongaPopupMenu();
            m.add(copyPath);
            m.show(tree, e.getX(), e.getY());
        }
    }
   
   
    private static class SelectionConverter implements NodeObjectConverter {
View Full Code Here

    }

    private void displayPopupMenu(SchedulerConsolePage page, int x, int y) {
        KongaPopupMenu pm = new KongaPopupMenu();
        page.populatePopupMenu(pm);
        pm.show(page.getMainPanel(), x, y);
    }
}
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.