Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.Window.destroy()


        layout.addMember(spacer);

        IButton cancel = new EnhancedIButton(MSG.common_button_cancel());
        cancel.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                modalWindow.destroy();
                AffinityGroupTableView.this.refreshTableInfo();
            }
        });
        final IButton create = new EnhancedIButton(MSG.view_adminTopology_affinityGroups_createNew(), ButtonColor.BLUE);
        create.addClickHandler(new ClickHandler() {
View Full Code Here


            //winModal.setCanDragResize(true);
            winModal.centerInPage();
            winModal.addCloseClickHandler(new CloseClickHandler() {
                @Override
                public void onCloseClick(CloseClickEvent event) {
                    winModal.destroy();
                }
            });

            NewNotificationEditor newEditor = new NewNotificationEditor(alertDefinition, notifications, notifToEdit,
                new Runnable() {
View Full Code Here

            NewNotificationEditor newEditor = new NewNotificationEditor(alertDefinition, notifications, notifToEdit,
                new Runnable() {
                    @Override
                    public void run() {
                        winModal.destroy();
                        table.refresh();
                    }
                });
            winModal.addItem(newEditor);
            winModal.show();
View Full Code Here

              else{
                if(username.equals(getLastUserName()) && pass.equals(getLastPassword())){
                  removeLastLoginName();
                }
              }
              window.destroy();
            }
          }
          public void onFailure(Throwable t)
          {
            Log.debug("Login->onFailure " + t);
View Full Code Here

                        message.setContents("Failed to login!");
                      }else
                      {
                        if(ch_remember.getValueAsBoolean())
                          setLastLoginName(username, pass);
                        window.destroy();
                      }
                    }
                    public void onFailure(Throwable t)
                    {
                      Log.debug("Login->onFailure " + t);
View Full Code Here

      debugButton.setIcon(Imgs.BUG.get());
      debugButton.setWidth(140);
      debugButton.addClickHandler(new ClickHandler(){
        @Override
        public void onClick(ClickEvent event) {
          window.destroy();
          ReportIssue.report(view, t);
        }});
      content.addMember(debugButton);
      window.addItem(content);
      window.draw();
View Full Code Here

    window.setShowMinimizeButton(false);
    window.setAutoCenter(true);
    window.setCanDragResize(true);
    window.addCloseClickHandler(new CloseClickHandler() {
      public void onCloseClick(CloseClickEvent event) {
        window.destroy();
      }
    });
    window.setShowTitle(false);
    return window;
  }
View Full Code Here

    Button closeWindow = new Button("Close window");
    closeWindow.addClickHandler(new ClickHandler(){

      @Override
      public void onClick(ClickEvent event) {
        window.destroy();
      }});
   
    buttons.addMember(executeQuery);
    buttons.addMember(closeWindow);
    buttons.setWidth100();
View Full Code Here

                String historyToken = nodeID.substring(0, nodeID.indexOf(idSuffix));
                History.newItem(historyToken, false);
                window.addCloseClickHandler(new CloseClickHandler() {
                    public void onCloseClick(CloseClientEvent event) {
                        History.newItem("", false);
                        window.destroy();
                    }
                });
                window.show();
            }
        }
View Full Code Here

                winModal.setShowModalMask(true);
                winModal.centerInPage();
                winModal.addCloseClickHandler(new CloseClickHandler() {
                    public void onCloseClick(CloseClientEvent event) {
                        buttonTouchThis.setTitle("Touch This");
                        winModal.destroy();
                    }
                });
                DynamicForm form = new DynamicForm();
                form.setHeight100();
                form.setWidth100();
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.