Package com.google.gdata.data

Examples of com.google.gdata.data.PlainTextConstruct


    // It's intentionally commented out so we can demonstrate setting the owner
    // field using setOwnerUpdate() as shown in makeUpdatingComment() below.
    // entry.setOwner(owner);

    entry.setContent(new HtmlTextConstruct("issue description"));
    entry.setTitle(new PlainTextConstruct("issue summary"));
    entry.setStatus(new Status("New"));
    entry.addLabel(new Label("Priority-High"));
    entry.addLabel(new Label("Milestone-2009"));
    entry.addCc(cc);
    entry.setSendEmail(new SendEmail("False"));
View Full Code Here


     
      String tag = parts[0].trim(); // such as "name"
      String value = parts[1].trim(); // such as "Fred"
     
      if (tag.equals("title")) {
        entryToUpdate.setTitle(new PlainTextConstruct(value));
      } else if (tag.equals("summary")) {
        entryToUpdate.setSummary(new PlainTextConstruct(value));
      } else if (tag.equals("worksheet")) {
        entryToUpdate.setWorksheet(new Worksheet(value));
      } else if (tag.equals("header")) {
        entryToUpdate.setHeader(new Header(Integer.parseInt(value)));
      } else if (tag.equals("startrow") || tag.equals("insertionmode")
View Full Code Here

  private void createAlbum() throws Exception {
    AlbumEntry album = new AlbumEntry();

    String title = getString("Title");
    album.setTitle(new PlainTextConstruct(title));
    String description = getString("Description");
    album.setDescription(new PlainTextConstruct(description));

    String access = "";
    while (!access.equals("public") && !access.equals("private")) {
      access = getString("Access (public | private)");
    }
View Full Code Here

  private void createComment(PhotoEntry photoEntry) throws Exception {
    CommentEntry comment = new CommentEntry();

    String gphotoId = photoEntry.getGphotoId();
    comment.setPhotoId(Long.parseLong(gphotoId));
    comment.setTitle(new PlainTextConstruct("Inserted Comment"));

    String commentStr = getString("Comment");
    comment.setContent(new PlainTextConstruct(commentStr));

    insert(photoEntry, comment);
  }
View Full Code Here

  private void createPhoto(AlbumEntry albumEntry) throws Exception {
    PhotoEntry photo = new PhotoEntry();

    String title = getString("Title");
    photo.setTitle(new PlainTextConstruct(title));
    String description = getString("Description");
    photo.setDescription(new PlainTextConstruct(description));
    photo.setTimestamp(new Date());

    OtherContent content = new OtherContent();

View Full Code Here

  private void createTag(PhotoEntry photoEntry) throws Exception {
    TagEntry tag = new TagEntry();

    String title = getString("Tag");
    tag.setTitle(new PlainTextConstruct(title));

    insert(photoEntry, tag);
  }
View Full Code Here

      }

      // Insert, update, and delete an entry if so requested.
      if (updateEntry) {
        BaseEntry newEntry = new Entry();
        newEntry.setTitle(new PlainTextConstruct("Sample entry title"));
        newEntry.setContent(new PlainTextConstruct("Sample entry content"));
        BaseEntry e = service.insert(feedUrl, newEntry);
        System.out.println("Inserted an entry, ID is " + e.getId());
        e.setContent(new PlainTextConstruct("New sample entry content"));
        service.update(new URL(e.getEditLink().getHref()), e);
        System.out.println("Updated the entry");
        service.delete(new URL(e.getEditLink().getHref()));
        System.out.println("Deleted the entry");
      }
View Full Code Here

  private static CalendarEventEntry createEvent(CalendarService service,
      String eventTitle, String eventContent, String recurData,
      boolean isQuickAdd, WebContent wc) throws ServiceException, IOException {
    CalendarEventEntry myEntry = new CalendarEventEntry();

    myEntry.setTitle(new PlainTextConstruct(eventTitle));
    myEntry.setContent(new PlainTextConstruct(eventContent));
    myEntry.setQuickAdd(isQuickAdd);
    myEntry.setWebContent(wc);

    // If a recurrence was requested, add it. Otherwise, set the
    // time (the current date and time) and duration (30 minutes)
View Full Code Here

   * @throws ServiceException If the service is unable to handle the request.
   * @throws IOException Error communicating with the server.
   */
  private static CalendarEventEntry updateTitle(CalendarEventEntry entry,
      String newTitle) throws ServiceException, IOException {
    entry.setTitle(new PlainTextConstruct(newTitle));
    return entry.update();
  }
View Full Code Here

      newEntry = new SpreadsheetEntry();
    } else if (type.equals("folder")) {
      newEntry = new FolderEntry();
    }

    newEntry.setTitle(new PlainTextConstruct(title));
    return service.insert(buildUrl(URL_DEFAULT + URL_DOCLIST_FEED), newEntry);
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.PlainTextConstruct

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.