Package com.smartgwt.client.widgets

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


          fav.setName(nameItem.getValueAsString());
          fav.setShared(sharedItem.getValueAsBoolean());
          FavouritesCommService.saveSearchFavourite(fav, new DataCallback<SearchFavourite>() {
            public void execute(SearchFavourite result) {
              fireAddEvent(new FavouriteEvent(null, result, FavouritesController.this));
              addWindow.destroy();
            }
          });
        }
      }
    });
View Full Code Here


    IButton cancelBtn = new IButton(messages.favouritesControllerAddCancel());
    cancelBtn.setIcon(BTN_CANCEL_IMG);
    cancelBtn.setAutoFit(true);
    cancelBtn.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        addWindow.destroy();
      }
    });
    LayoutSpacer lsr = new LayoutSpacer();
    lsr.setWidth("*");

 
View Full Code Here

        liveDataWindow.setAutoCenter(true);
        liveDataWindow.centerInPage();
        liveDataWindow.addCloseClickHandler(new CloseClickHandler() {
            @Override
            public void onCloseClick(CloseClickEvent event) {
                liveDataWindow.destroy();
                refreshTableInfo();
            }
        });

        ListGrid liveDataGrid = decorateLiveDataGrid(records);
View Full Code Here

                                firePropertyChangedEvent(propertyList, propertyDefinitionList, true);
                                CoreGUI.getMessageCenter().notify(
                                    new Message(MSG.view_configEdit_msg_4(), EnumSet.of(Message.Option.Transient)));

                                popup.destroy();
                            }
                        });

                        form.addItemChangedHandler(new ItemChangedHandler() {
                            public void onItemChanged(ItemChangedEvent itemChangedEvent) {
View Full Code Here

                        });

                        final IButton cancelButton = new EnhancedIButton(MSG.common_button_cancel());
                        cancelButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
                            public void onClick(ClickEvent clickEvent) {
                                popup.destroy();
                            }
                        });

                        ToolStrip buttonBar = new ToolStrip();
                        buttonBar.setPadding(5);
View Full Code Here

                //reset the custom blur event handling - we're destroying the new form here
                blurUnsetItem = null;
                blurValueItem = null;

                layout.destroy();
                popup.destroy();
            }
        });

        // Only enable the OK button if all properties are valid.
        childForm.addItemChangedHandler(new ItemChangedHandler() {
View Full Code Here

        if (!mapReadOnly) {
            final IButton cancelButton = new IButton(MSG.common_button_cancel());
            cancelButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
                public void onClick(ClickEvent clickEvent) {
                    layout.destroy();
                    popup.destroy();
                }
            });
            buttonBar.addMember(cancelButton);
        }
View Full Code Here

        dialogWin.addItem(form);
        dialogWin.show();
        dialogWin.addCloseClickHandler(new CloseClickHandler() {
            @Override
            public void onCloseClick(CloseClickEvent event) {
                dialogWin.destroy();
            }
        });
    }

    private static String getSeverityIcon(Message.Severity severity) {
View Full Code Here

                    });

                    membershipView.setCancelButtonHandler(new ClickHandler() {

                        public void onClick(ClickEvent event) {
                            winModal.destroy();
                            MembersView.this.refreshTableInfo();
                        }
                    });

                    winModal.addItem(membershipView);
View Full Code Here

        modalWindow.setIsModal(true);
        modalWindow.setShowModalMask(true);
        modalWindow.centerInPage();
        modalWindow.addCloseClickHandler(new CloseClickHandler() {
            public void onCloseClick(CloseClickEvent event) {
                modalWindow.destroy();
                AffinityGroupTableView.this.refreshTableInfo();
            }
        });

        VLayout layout = new VLayout();
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.