Examples of addBeforeShowHandler()


Examples of com.sencha.gxt.widget.core.client.menu.Menu.addBeforeShowHandler()

            }
          });
      menu.add(reload);
      final MenuItem referMenuItem = getReferMenuItem(true);
      menu.add(referMenuItem);
      menu.addBeforeShowHandler(new BeforeShowHandler() {
        @Override
        public void onBeforeShow(BeforeShowEvent event) {
          if(getCommonTreeGrid().getSelectionModel().getSelectedItem().isFolder()){
            referMenuItem.setEnabled(false);
          }else{
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.menu.Menu.addBeforeShowHandler()

      Menu fileMenu = new FileMenu(fileManagerPresenter)
          .getFileMenu();
      final MenuItem referMenuItem = getReferMenuItem(false);
      fileMenu.add(new SeparatorMenuItem());
      fileMenu.add(referMenuItem);
      fileMenu.addBeforeShowHandler(new BeforeShowHandler() {
        @Override
        public void onBeforeShow(BeforeShowEvent event) {
          if(getMyTreeGrid().getSelectionModel().getSelectedItem().isFolder()){
            referMenuItem.setEnabled(false);
          }else{
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.