Package com.esri.gpt.agp.client

Examples of com.esri.gpt.agp.client.AgpDPart


   
    if ((sItemType != null) && sItemType.equals("file")) {
      sPartName = "file";
      sFileName = sItem; // TODO is this correct?
      provider.add("item",sItem); // TODO is this correct?
      provider.add(new AgpDPart(con,sourceItem,sUrl,sPartName,sFileName,nDataSize));
     
    } else if ((sItemType != null) && sItemType.equals("url")) {
      // Content-Type: text/plain; charset=utf-8
      sPartName = "text";
      sFileName = null
      provider.add("item",sItem); // TODO is this correct?
      provider.add(new AgpDPart(con,sourceItem,sUrl,sPartName,sFileName,nDataSize));
     
    } else if ((sItemType != null) && sItemType.equals("text")) {
      sPartName = "text";
      sFileName = null;
      if (!sType.equals("Web Map")) {
        provider.add("item",sItem); // TODO is this correct?
        provider.add(new AgpDPart(con,sourceItem,sUrl,sPartName,sFileName,nDataSize));
      } else {
       
        provider.add("item",sItem); // TODO is this correct?
       
        String sCType = "application/x-www-form-urlencoded";
View Full Code Here


        if ((sFileName.length() > 0) && (sFileName.indexOf("/") == -1)) {
          String sId = sourceItem.getProperties().getValue("id");
          String sUrl = con.makeSharingUrl()+"/content/items";
          sUrl += "/"+AgpUtil.encodeURIComponent(sId);
          sUrl += "/info/thumbnail/"+sFileName;
          provider.add(new AgpDPart(
              con,sourceItem,sUrl,"thumbnail",sFileName,-1));
        }
      }
    }   
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.agp.client.AgpDPart

Copyright © 2018 www.massapicom. 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.