Package org.gwtoolbox.widget.client.menu

Examples of org.gwtoolbox.widget.client.menu.MenuBuilder.build()


                        if (menuBuilder != null) {
                            if (showDefaultContextMenu) {
                                menu.addSeparator();
                            }
                            menuBuilder.build(menu.getMenu());
                        }
                        menu.setPopupPositionAndShow(new Popup.PositionCallback() {
                            public void setPosition(int offsetWidth, int offsetHeight) {
                                menu.setPopupPosition(element.getAbsoluteLeft() + x, element.getAbsoluteTop() + y);
                            }
View Full Code Here


            final MenuBuilder menuBuilder = tabSpec.getMenuBuilder();
            if (menuBuilder != null) {
                addContextMenuListener(tabElement, new ContextMenuHandler() {
                    public void onContextMenu(final com.google.gwt.dom.client.Element element, final int x, final int y) {
                        final MenuPopup menu = new MenuPopup(true);
                        menuBuilder.build(menu.getMenu());
                        menu.setPopupPositionAndShow(new Popup.PositionCallback() {
                        public void setPosition(int offsetWidth, int offsetHeight) {
                            menu.setPopupPosition(element.getAbsoluteLeft() + x, element.getAbsoluteTop() + 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.