Package com.smartgwt.client.widgets

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


              Window window = new DockableWindow();
              window.setTitle(messages.exportToCsvWindowTitle());
              String content = CONTENT_PRE + messages.exportToCsvContentReady() + CONTENT_POST;
              String linktocsv = messages.exportToCsvDownloadLink(link) + LINK_POST;
              window.addItem(new HTMLFlow(content + linktocsv));
              window.centerInPage();
              window.setAutoSize(true);
              window.show();
              window.setKeepInParentRect(true);
            }
View Full Code Here


  public void onClick(ClickEvent event) {
    PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget);
    canvas.setMargin(10);
    Window window = new Window();
    window.setTitle(messages.printPrefsTitle());
    window.addItem(canvas);
    window.centerInPage();
    window.setAutoSize(true);
    window.show();
  }
View Full Code Here

    buttonLayout.addMember(lsr);
    buttonLayout.addMember(addBtn);
    buttonLayout.addMember(cancelBtn);
    mainLayout.addMember(form);
    mainLayout.addMember(buttonLayout);
    addWindow.addItem(mainLayout);
    addWindow.show();
  }

  public void onDeleteRequested(final FavouriteEvent event) {
    FavouritesCommService.deleteSearchFavourite(event.getOldFavourite(), new DataCallback<Boolean>() {
View Full Code Here

    window.setTitle(I18nProvider.getGlobal().aboutMenuTitle());
    window.setWidth(400);
    window.setHeight(300);
    window.setAutoCenter(true);
    window.setPadding(10);
    window.addItem(layout);
    window.draw();
  }
}
View Full Code Here

      contents.setContents(description);
      contents.setDefaultWidth(200);

      descriptionWindow.setAutoSize(true);
      descriptionWindow.setAutoHeight();
      descriptionWindow.addItem(contents);

      rightLayout.addMember(descriptionWindow);
      hLayout.addMember(rightLayout);
    }
View Full Code Here

        tab.setPane(resourceLayout);
        tabs.addTab(tab);
      }
    }

    sourceWindow.addItem(tabs);
    addChild(sourceWindow);
    sourceWindow.show();
  }

  private void addSourceTab(TabSet tabs, String content) {
View Full Code Here

                refreshTableInfo();
            }
        });

        ListGrid liveDataGrid = decorateLiveDataGrid(records);
        liveDataWindow.addItem(liveDataGrid);
        liveDataWindow.show();
    }

}
View Full Code Here

                    String errorMsg = record.getAttribute(AbstractOperationHistoryDataSource.Field.ERROR_MESSAGE);
                    if (errorMsg == null) {
                        errorMsg = MSG.common_status_failed();
                    }
                    htmlPane.setContents("<pre>" + errorMsg + "</pre>");
                    winModal.addItem(htmlPane);
                    winModal.show();
                }
            }
        });
        statusField.setWidth(44);
View Full Code Here

                    String errorMsg = operationHistory.getErrorMessage();
                    if (errorMsg == null) {
                        errorMsg = MSG.common_status_failed();
                    }
                    htmlPane.setContents("<pre>" + errorMsg + "</pre>");
                    winModal.addItem(htmlPane);
                    winModal.show();
                }
            });
            items.add(errorLinkItem);
            break;
View Full Code Here

                        buttonBar.setAlign(Alignment.CENTER);
                        buttonBar.setMembers(okButton, cancelButton);

                        vLayout.addMember(buttonBar);

                        popup.addItem(vLayout);
                        popup.show();

                        simpleField.focusInItem();
                    }
                }
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.