Package com.gwtext.client.widgets.menu

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


            public void onClick(BaseItem item, EventObject e) {
                SnapshotView.rebuildBinaries();
            }
        });
        rebuild.setIcon("images/refresh.gif");             //NON-NLS
        m.addItem(rebuild);

        return m;
    }

    private Panel deploymentExplorer() {
View Full Code Here


          }
        });

        Toolbar tb = new Toolbar();
        Menu menu = new Menu();
        menu.addItem(new Item(constants.AddRow(), new BaseItemListenerAdapter() {
          public void onClick(BaseItem item, EventObject e) {
            Record r = recordDef.createRecord(new Object[recordDef.getFields().length]);
            r.set("num", store.getRecords().length + 1); //NON-NLS

            store.add(r);
View Full Code Here

            r.set("num", store.getRecords().length + 1); //NON-NLS

            store.add(r);
          }
        }));
        menu.addItem(new Item(constants.RemoveSelectedRowS(), new BaseItemListenerAdapter() {
          public void onClick(BaseItem item, EventObject e) {
            Record[] selected = grid.getSelectionModel().getSelections();
            if (com.google.gwt.user.client.Window.confirm(constants.AreYouSureYouWantToDeleteTheSelectedRowS())) {
              for (int i = 0; i < selected.length; i++) {
                store.remove(selected[i]);
View Full Code Here

          }
              renumber(store.getRecords());
            }
          }
        }));
        menu.addItem(new Item(constants.CopySelectedRowS(), new BaseItemListenerAdapter() {
          public void onClick(BaseItem item, EventObject e) {
            Record[] selected = grid.getSelectionModel().getSelections();
          for (int i = 0; i < selected.length; i++) {
            Record r = recordDef.createRecord(new Object[recordDef.getFields().length]);
            Record orig = selected[i];
View Full Code Here

    }

    //TODO: move it to separate class
    private Menu packageNewMenu() {
        Menu m = new Menu();
        m.addItem(new Item(constants.NewPackage1(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                NewPackageWizard wiz = new NewPackageWizard(new Command() {
                    public void execute() {
                        refreshPackageTree();
                    }
View Full Code Here

                });
                wiz.show();
            }
        }, "images/new_package.gif")); //NON-NLS

        m.addItem(new Item(constants.NewRule(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                launchWizard(null, constants.NewRule(), true, currentPackage);
            }
        }, "images/rule_asset.gif"));          //NON-NLS
View Full Code Here

            public void onClick(BaseItem item, EventObject e) {
                launchWizard(null, constants.NewRule(), true, currentPackage);
            }
        }, "images/rule_asset.gif"));          //NON-NLS

        m.addItem(new Item(constants.UploadPOJOModelJar(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                launchWizard(AssetFormats.MODEL, constants.NewModelArchiveJar(), false, currentPackage);
            }
        }, "images/model_asset.gif"));              //NON-NLS
View Full Code Here

            public void onClick(BaseItem item, EventObject e) {
                launchWizard(AssetFormats.MODEL, constants.NewModelArchiveJar(), false, currentPackage);
            }
        }, "images/model_asset.gif"));              //NON-NLS

        m.addItem(new Item(constants.NewDeclarativeModel(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                launchWizard(AssetFormats.DRL_MODEL, constants.NewDeclarativeModelUsingGuidedEditor(), false, currentPackage);
            }
        }, "images/model_asset.gif")); //NON-NLS
View Full Code Here

            public void onClick(BaseItem item, EventObject e) {
                launchWizard(AssetFormats.DRL_MODEL, constants.NewDeclarativeModelUsingGuidedEditor(), false, currentPackage);
            }
        }, "images/model_asset.gif")); //NON-NLS

        m.addItem(new Item(constants.NewFunction(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                launchWizard(AssetFormats.FUNCTION, constants.CreateANewFunction(), false, currentPackage);
            }
        }, "images/function_assets.gif")); //NON-NLS
View Full Code Here

                launchWizard(AssetFormats.FUNCTION, constants.CreateANewFunction(), false, currentPackage);
            }
        }, "images/function_assets.gif")); //NON-NLS


        m.addItem(new Item(constants.NewDSL(), new BaseItemListenerAdapter() {
            public void onClick(BaseItem item, EventObject e) {
                launchWizard(AssetFormats.DSL, constants.CreateANewDSLConfiguration(), false, currentPackage);
            }
        }, "images/dsl.gif"));   //NON-NLS
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.