Exemplo n.º 1
0
  @Inject
  public DownloadContainer() {
    frame = new Frame();
    frame.getElement().setAttribute("name", TARGET);
    frame.setSize("0px", "0px");
    frame.setVisible(false);
    frame.ensureDebugId(TARGET);

    RootLayoutPanel.get().add(frame);
  }
 /** Costructor */
 public CollectionSummaryTeacherView() {
   this.res = CollectionSummaryTeacherCBundle.INSTANCE;
   res.css().ensureInjected();
   setWidget(uiBinder.createAndBindUi(this));
   String urlDomain = Window.Location.getProtocol() + "//" + Window.Location.getHost();
   style =
       "<link rel='styleSheet' type='text/css' href='"
           + urlDomain
           + "/css/googleVisualization.css'><link href='"
           + urlDomain
           + "/css/printAnalytics.css' rel='stylesheet' type='text/css'>";
   setData();
   printWidget.setVisible(false);
   downloadFile.setVisible(false);
 }