Package org.geomajas.plugin.printing.client.util

Examples of org.geomajas.plugin.printing.client.util.UrlBuilder.addParameter()


        if (r instanceof PrintGetTemplateResponse) {
          PrintGetTemplateResponse response = (PrintGetTemplateResponse) r;
          GWT.log("Downloading " + response.getDocumentId(), null);
          UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
          url.addPath("d/printing").addParameter("documentId", response.getDocumentId());
          url.addParameter("name", (String) fileNameItem.getValue());
          url.addParameter("userToken", command.getUserToken());
          if ("save".equals(downloadTypeGroup.getValue())) {
            url.addParameter("download", "1");
            String encodedUrl = url.toString();
            // create a hidden iframe to avoid popups ???
View Full Code Here


          PrintGetTemplateResponse response = (PrintGetTemplateResponse) r;
          GWT.log("Downloading " + response.getDocumentId(), null);
          UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
          url.addPath("d/printing").addParameter("documentId", response.getDocumentId());
          url.addParameter("name", (String) fileNameItem.getValue());
          url.addParameter("userToken", command.getUserToken());
          if ("save".equals(downloadTypeGroup.getValue())) {
            url.addParameter("download", "1");
            String encodedUrl = url.toString();
            // create a hidden iframe to avoid popups ???
            HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl
View Full Code Here

          UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
          url.addPath("d/printing").addParameter("documentId", response.getDocumentId());
          url.addParameter("name", (String) fileNameItem.getValue());
          url.addParameter("userToken", command.getUserToken());
          if ("save".equals(downloadTypeGroup.getValue())) {
            url.addParameter("download", "1");
            String encodedUrl = url.toString();
            // create a hidden iframe to avoid popups ???
            HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl
                + "'+style='position:absolute;width:0;height:0;border:0'>");
            hiddenFrame.setVisible(false);
View Full Code Here

            HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl
                + "'+style='position:absolute;width:0;height:0;border:0'>");
            hiddenFrame.setVisible(false);
            addChild(hiddenFrame);
          } else {
            url.addParameter("download", "0");
            String encodedUrl = url.toString();
            com.google.gwt.user.client.Window.open(encodedUrl, "_blank", null);
          }
        }
      }
View Full Code Here

      public void execute(PrintGetTemplateResponse response) {
        stopProgress();
        UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
        url.addPath(URL_PATH);
        url.addParameter(URL_DOCUMENT_ID, response.getDocumentId());
        url.addParameter(URL_NAME, (String) fileNameItem.getValue());
        url.addParameter(URL_TOKEN, command.getUserToken());
        if (SAVE.equals(downloadTypeGroup.getValue())) {
          url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_YES);
          String encodedUrl = url.toString();
View Full Code Here

      public void execute(PrintGetTemplateResponse response) {
        stopProgress();
        UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
        url.addPath(URL_PATH);
        url.addParameter(URL_DOCUMENT_ID, response.getDocumentId());
        url.addParameter(URL_NAME, (String) fileNameItem.getValue());
        url.addParameter(URL_TOKEN, command.getUserToken());
        if (SAVE.equals(downloadTypeGroup.getValue())) {
          url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_YES);
          String encodedUrl = url.toString();
          // create a hidden iframe to avoid popups ???
View Full Code Here

        stopProgress();
        UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
        url.addPath(URL_PATH);
        url.addParameter(URL_DOCUMENT_ID, response.getDocumentId());
        url.addParameter(URL_NAME, (String) fileNameItem.getValue());
        url.addParameter(URL_TOKEN, command.getUserToken());
        if (SAVE.equals(downloadTypeGroup.getValue())) {
          url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_YES);
          String encodedUrl = url.toString();
          // create a hidden iframe to avoid popups ???
          HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl
View Full Code Here

        url.addPath(URL_PATH);
        url.addParameter(URL_DOCUMENT_ID, response.getDocumentId());
        url.addParameter(URL_NAME, (String) fileNameItem.getValue());
        url.addParameter(URL_TOKEN, command.getUserToken());
        if (SAVE.equals(downloadTypeGroup.getValue())) {
          url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_YES);
          String encodedUrl = url.toString();
          // create a hidden iframe to avoid popups ???
          HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl
              + "'+style='position:absolute;width:0;height:0;border:0'>");
          hiddenFrame.setVisible(false);
View Full Code Here

          HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl
              + "'+style='position:absolute;width:0;height:0;border:0'>");
          hiddenFrame.setVisible(false);
          addChild(hiddenFrame);
        } else {
          url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_NO);
          String encodedUrl = url.toString();
          com.google.gwt.user.client.Window.open(encodedUrl, "_blank", null);
        }
      }
    });
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.