Examples of addItem()


Examples of org.gwtoolbox.widget.client.menu.Menu.addItem()

        HorizontalPanel buttons = new HorizontalPanel();

        SimpleMenuButton button = new SimpleMenuButton("Vertical Menu", true);
        Menu menu = button.getMenu();
        menu.addItem("Item 1", new Command() {
            public void execute() {
                showMessage("Item 1 was clicked");
            }
        });
        menu.addItem("Item 2", new Command() {
View Full Code Here

Examples of org.gwtoolbox.widget.client.menu.MenuPopup.addItem()


        // context menues

        final MenuPopup contextMenu = new MenuPopup(true);
        contextMenu.addItem("Item 1", new AlertCommand("'Item 1' was clicked"));
        contextMenu.addItem("Item 2", new AlertCommand("'Item 2' was clicked"));
        contextMenu.addItem("Item 3", new AlertCommand("'Item 3' was clicked"));

        Menu subMenu = new Menu(true);
        subMenu.addItem("Option 1", new AlertCommand("'Option 1' was clicked"));
View Full Code Here

Examples of org.impalaframework.module.loader.ModuleLoaderRegistry.addItem()

        CustomClassLoaderFactory classLoaderFactory = new CustomClassLoaderFactory();
        classLoaderFactory.setModuleLocationResolver(resolver);
       
        ApplicationModuleLoader rootModuleLoader = new ApplicationModuleLoader();
       
        registry.addItem("spring-"+ModuleTypes.ROOT, rootModuleLoader);
        ApplicationModuleLoader applicationModuleLoader = new ApplicationModuleLoader();
       
        registry.addItem("spring-"+ModuleTypes.APPLICATION, applicationModuleLoader);
        DefaultApplicationContextLoader contextLoader = new DefaultApplicationContextLoader();
        contextLoader.setModuleLoaderRegistry(registry);
View Full Code Here

Examples of org.impalaframework.module.transition.TransitionProcessorRegistry.addItem()

        SpringModuleRuntime moduleRuntime = new SpringModuleRuntime();
        moduleRuntime.setApplicationContextLoader(loader);
       
        loadTransitionProcessor.setModuleRuntimeManager(moduleRuntimeManager);
       
        transitionProcessors.addItem(Transition.UNLOADED_TO_LOADED, loadTransitionProcessor);
        transitionProcessors.addItem(Transition.LOADED_TO_UNLOADED, unloadTransitionProcessor);
        transitionManager.setTransitionProcessorRegistry(transitionProcessors);
    }
   
    public void testLoadRoot() {
View Full Code Here

Examples of org.impalaframework.registry.Registry.addItem()

        for (String key : keys) {
                final String registrationKey = contributions.get(key);
                final Object bean = beanFactory.getBean(key);
                if (bean != null) {
                    try {
                        registry.addItem(registrationKey, bean);
                    } catch (ClassCastException e) {
                        throw new ConfigurationException("Bean '" + key + "' is not type compatible with " +
                                "registry bean '" + registryBeanName + "'");
                    }
                }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.widget.toolbar.ActionToolbarMenu.addItem()

            GWTJahiaToolbarMenu gwtToolbarMenu = (GWTJahiaToolbarMenu) gwtToolbarItem;
            ActionToolbarMenu menu = new ActionToolbarMenu(linker);
            menu.setActionItems(actionItems);

            for (GWTJahiaToolbarItem subItem : gwtToolbarMenu.getGwtToolbarItems()) {
                menu.addItem(subItem);
            }

            Button menuToolItem = new Button(gwtToolbarMenu.getItemsGroupTitle());
            menuToolItem.setBorders(false);
            String minIconStyle = gwtToolbarMenu.getIcon();
View Full Code Here

Examples of org.jboss.as.console.client.widgets.LHSNavTree.addItem()

        stack.add(subsysPanel);

        // ----------------------------------------------------

        Tree deploymentTree = new LHSNavTree("profiles");
        deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentListPresenter));
        DisclosurePanel deplPanel  = new DisclosureStackHeader("Deployments").asWidget();
        deplPanel.setContent(deploymentTree);

        stack.add(deplPanel);
View Full Code Here

Examples of org.jboss.as.console.client.widgets.nav.DefaultTreeItem.addItem()

                                            for(String server : result)
                                            {
                                                String token = parentPlace + key+";name="+server;
                                                final LHSNavTreeItem link = new LHSNavTreeItem("Provider: "+server, token);
                                                link.setKey(key);
                                                groupTreeItem.addItem(link);
                                            }
                                        }
                                    }
                            );
View Full Code Here

Examples of org.jboss.as.console.client.widgets.tree.GroupItem.addItem()

        runtimeTree.setVisible(true);

        if(subsystems.isEmpty()) return;

        final GroupItem platformGroup = new GroupItem("Platform");
        platformGroup.addItem(new LHSNavTreeItem("JVM", NameTokens.VirtualMachine));
        platformGroup.addItem(new LHSNavTreeItem("Environment", NameTokens.EnvironmentPresenter));
        platformGroup.addItem(new LHSNavTreeItem("Log Viewer", NameTokens.LogViewer));

        runtimeTree.addItem(platformGroup);
View Full Code Here

Examples of org.jboss.ballroom.client.layout.LHSNavTree.addItem()

        LHSTreeSection domainLeaf = new LHSTreeSection("Domain", true);
        domainLeaf.addItem(new LHSNavTreeItem("Overview", NameTokens.Topology));
        domainLeaf.addItem(new LHSNavTreeItem("Patch Management", NameTokens.PatchingPresenter));
        domainLeaf.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentsPresenter));

        domainNavigation.addItem(domainLeaf);
        domainNavigation.expandTopLevel();

        stack.add(domainNavigation);

        // ----------------------------------------------------
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.