Package com.sencha.gxt.widget.core.client.event.HideEvent

Examples of com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler


        }
      }));
    }

    if (child instanceof HasHideHandlers) {
      g.add(((HasHideHandlers) child).addHideHandler(new HideHandler() {
        @Override
        public void onHide(HideEvent event) {
          onWidgetHide(event.getSource());
        }
      }));
View Full Code Here


            if("查看日志".equals(ae.getInnerText())){
              LogWindow win=new LogWindow();
              win.refreshId(value.getJobId(),value.getId());
            }else if("取消任务".equals(ae.getInnerText())){
              ConfirmMessageBox box=new ConfirmMessageBox("取消任务", "你确认取消该任务吗?");
              box.addHideHandler(new HideHandler() {
                public void onHide(HideEvent event) {
                  Dialog btn = (Dialog) event.getSource();
                  if(btn.getHideButton().getText().equalsIgnoreCase("yes")){
                    grid.mask("取消任务中");
                    RPCS.getJobService().cancel(value.getId(),new AbstractAsyncCallback<Void>(){
View Full Code Here

              LogWindow win = new LogWindow();
              win.refreshId(value.getJobId(),value.getId());
            } else if ("取消任务".equals(ae.getInnerText())) {
              ConfirmMessageBox box = new ConfirmMessageBox(
                  "取消任务", "你确认取消该任务吗?");
              box.addHideHandler(new HideHandler() {
                public void onHide(HideEvent event) {
                  Dialog btn = (Dialog) event.getSource();
                  if (btn.getHideButton().getText()
                      .equalsIgnoreCase("yes")) {
                    grid.mask("取消任务中");
View Full Code Here

                  }
                }
              });
        }
      };
      addHideHandler(new HideHandler() {
        public void onHide(HideEvent event) {
          timer.cancel();
        }
      });
    }
View Full Code Here

            if("查看日志".equals(ae.getInnerText())){
              LogWindow win=new LogWindow();
              win.refreshId(value.getJobId(),value.getId());
            }else if("取消任务".equals(ae.getInnerText())){
              ConfirmMessageBox box=new ConfirmMessageBox("取消任务", "你确认取消该任务吗?");
              box.addHideHandler(new HideHandler() {
                public void onHide(HideEvent event) {
                  Dialog btn = (Dialog) event.getSource();
                  if(btn.getHideButton().getText().equalsIgnoreCase("yes")){
                    grid.mask("取消任务中");
                    RPCS.getJobService().cancel(value.getId(),new AbstractAsyncCallback<Void>(){
View Full Code Here

          return;
        }
      }
      final JobDropTarget targetThis=this;
      ConfirmMessageBox confirm=new ConfirmMessageBox("警告", "迁移组/任务将会产生一定的风险,请确认:<br/>1.本次迁移造成的继承配置项改变,不影响任务正常运行.<br/>2.本次迁移造成的继承资源改变,不影响任务正常运行");
      confirm.addHideHandler(new HideHandler() {
        public void onHide(HideEvent he) {
          Dialog dialog=(Dialog) he.getSource();
          if(DefaultMessages.getMessages().messageBox_yes().equals(dialog.getHideButton().getText())){
            if(sourceItem.isJob()){
              RPCS.getJobService().move(sourceItem.getId(), activeItem.getModel().getId(), new AbstractAsyncCallback<Void>() {
View Full Code Here

        PredefinedButton.YES,
        PredefinedButton.NO,
        PredefinedButton.CANCEL);
    box.setIcon(MessageBox.ICONS
        .question());
    box.addHideHandler(new HideHandler() {
      @Override
      public void onHide(HideEvent event) {
        final LogTextPanel item = (LogTextPanel) box.getData("item");
        Dialog btn = (Dialog) event.getSource();
        String choice = btn.getHideButton().getItemId();
View Full Code Here

        box.setPredefinedButtons(
            PredefinedButton.YES,
            PredefinedButton.NO);
        box.setIcon(MessageBox.ICONS
            .question());
        box.addHideHandler(new HideHandler() {
          @Override
          public void onHide(HideEvent event) {
            Dialog btn = (Dialog) event.getSource();
            String choice = btn.getHideButton().getItemId();
            if(choice.equalsIgnoreCase("yes")){
View Full Code Here

    RPCS.getUserService().getAllUsers(new AbstractAsyncCallback<List<ZUser>>() {
      public void onSuccess(List<ZUser> result) {
        allUsers=result;
      }
    });
    addHideHandler(new HideHandler() {
      public void onHide(HideEvent event) {
        if(jobPresenter!=null){
          RPCS.getJobService().getUpstreamJob(jobPresenter.getJobModel().getId(), new AbstractAsyncCallback<JobModel>() {
            @Override
            public void onSuccess(JobModel result) {
View Full Code Here

          if (t instanceof AnchorElement) {
            AnchorElement ae = t.cast();
            if ("取消调试".equals(ae.getInnerText())) {
              ConfirmMessageBox box = new ConfirmMessageBox(
                  "取消调试", "你确认取消此次调试吗?");
              box.addHideHandler(new HideHandler() {
                public void onHide(HideEvent event) {
                  Dialog btn = (Dialog) event.getSource();
                  if (btn.getHideButton().getText()
                      .equalsIgnoreCase("yes")) {
                    grid.mask("取消调试中");
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler

Copyright © 2018 www.massapicom. 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.