Package com.google.gdata.data.calendar

Examples of com.google.gdata.data.calendar.ColorProperty


        calEntry = new CalendarEntry();
        calEntry.setTitle(new PlainTextConstruct( CALENDAR_NAME ));
        calEntry.setSummary(new PlainTextConstruct( CALENDAR_SUMMARY ));
        calEntry.setTimeZone(calFeed.getEntries().get(0).getTimeZone());
        calEntry.setHidden(HiddenProperty.FALSE);
        calEntry.setColor(new ColorProperty( CALENDAR_COLOR ));
        calEntry.setSelected(SelectedProperty.TRUE);
        //calEntry.addLocation(new Where("", "", "Oakland"));
        //calEntry.addLocation(calFeed.getEntries().get(0).getLocations().);

          // Insert the calendar
View Full Code Here


    calendar.setTitle(new PlainTextConstruct("Little League Schedule"));
    calendar.setSummary(new PlainTextConstruct(
        "This calendar contains the practice schedule and game times."));
    calendar.setTimeZone(new TimeZoneProperty("America/Los_Angeles"));
    calendar.setHidden(HiddenProperty.FALSE);
    calendar.setColor(new ColorProperty(BLUE));
    calendar.addLocation(new Where("", "", "Oakland"));

    // Insert the calendar
    return service.insert(owncalendarsFeedUrl, calendar);
  }
View Full Code Here

  private static CalendarEntry updateCalendar(CalendarEntry calendar)
      throws IOException, ServiceException {
    System.out.println("Updating the secondary calendar");

    calendar.setTitle(new PlainTextConstruct("New title"));
    calendar.setColor(new ColorProperty(GREEN));
    calendar.setSelected(SelectedProperty.TRUE);
    return calendar.update();
  }
View Full Code Here

   */
  private static CalendarEntry updateSubscription(CalendarEntry calendar)
      throws IOException, ServiceException {
    System.out.println("Updating the display color of the Doodles calendar");

    calendar.setColor(new ColorProperty(RED));
    return calendar.update();
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.calendar.ColorProperty

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.