Package com.smartgwt.client.widgets.menu

Examples of com.smartgwt.client.widgets.menu.Menu.addItem()


                        public void onClick(MenuItemClickEvent event) {
                            disableAllFooterControls();
                            tableAction.getAction().executeAction(listGrid.getSelectedRecords(), menuEntries.get(key));
                        }
                    });
                    menu.addItem(item);
                }

                IMenuButton menuButton = new IMenuButton(tableAction.getTitle());
                menuButton.setID(EnhancedUtility.getSafeId("menuButton" + id + tableAction.getTitle()));
                menuButton.setTooltip(tableAction.getTooltip());
View Full Code Here


                            + "/0/"
                            + operationDefinition.getId();
                        CoreGUI.goToView(viewPath);
                    }
                });
                opSubMenu.addItem(operationItem);
            }
            operations.setSubmenu(opSubMenu);
        }
        addItem(operations);
    }
View Full Code Here

                    int index = event.getMenu().getItemNum(event.getItem());
                    sectionStack.expandSection(index);
                    sectionStack.showSection(index);
                }
            });
            menu.addItem(item);
        }
        menu.addItem(new MenuItemSeparator());

        MenuItem hideAllItem = new MenuItem(MSG.view_configEdit_hideAll());
        hideAllItem.addClickHandler(new ClickHandler() {
View Full Code Here

                    sectionStack.showSection(index);
                }
            });
            menu.addItem(item);
        }
        menu.addItem(new MenuItemSeparator());

        MenuItem hideAllItem = new MenuItem(MSG.view_configEdit_hideAll());
        hideAllItem.addClickHandler(new ClickHandler() {
            public void onClick(MenuItemClickEvent event) {
                for (int i = 0; i < sectionStack.getSections().length; i++) {
View Full Code Here

                for (int i = 0; i < sectionStack.getSections().length; i++) {
                    sectionStack.collapseSection(i);
                }
            }
        });
        menu.addItem(hideAllItem);

        toolStrip.addMember(new IMenuButton(MSG.view_configEdit_jumpToSection(), menu));

        return toolStrip;
    }
View Full Code Here

                        public void onClick(MenuItemClickEvent event) {
                            disableAllFooterControls();
                            carouselAction.getAction().executeAction(menuEntries.get(key));
                        }
                    });
                    menu.addItem(item);
                }

                IMenuButton menuButton = new IMenuButton(carouselAction.getTitle());
                menuButton.setMenu(menu);
                menuButton.setDisabled(true);
View Full Code Here

                        String viewPath = LinkManager.getResourceTabLink(resource.getId(),
                            ResourceDetailView.Tab.Operations.NAME, "Schedules") + "/0/" + operationDefinition.getId();
                        CoreGUI.goToView(viewPath);
                    }
                });
                opSubMenu.addItem(operationItem);
            }
            operations.setSubmenu(opSubMenu);
        }
        resourceContextMenu.addItem(operations);
View Full Code Here

        for (Iterator<String> i = valueMap.keySet().iterator(); i.hasNext();) {
            String portletKey = i.next();
            String portletName = valueMap.get(portletKey);
            MenuItem menuItem = new MenuItem(portletName);
            menuItem.setAttribute("portletKey", portletKey);
            addPortletMenu.addItem(menuItem);
        }

        addPortlet = new IMenuButton(MSG.common_title_add_portlet(), addPortletMenu);
        addPortlet.setIcon("[skin]/images/actions/add.png");
        addPortlet.setAutoFit(true);
View Full Code Here

    this.markMenuButton = new MenuButton( TextProvider.get().toolbar_manager_mark() );
    this.markMenuButton.setBorder( "0px" );
    this.markMenuButton.setHeight( 20 );
    Menu markMenu = new Menu();
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_READ ) );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNREAD ) );
    markMenu.addItem( new MenuItemSeparator() );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_DELETED ) );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNDELETED ) );
    this.markMenuButton.setMenu( markMenu );
View Full Code Here

    this.markMenuButton = new MenuButton( TextProvider.get().toolbar_manager_mark() );
    this.markMenuButton.setBorder( "0px" );
    this.markMenuButton.setHeight( 20 );
    Menu markMenu = new Menu();
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_READ ) );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNREAD ) );
    markMenu.addItem( new MenuItemSeparator() );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_DELETED ) );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNDELETED ) );
    this.markMenuButton.setMenu( markMenu );
    addMember( this.markMenuButton );
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.