Class CalendarDataHandler

java.lang.Object
  extended by CalendarDataHandler
All Implemented Interfaces:
java.lang.Runnable

public class CalendarDataHandler
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
CalendarDataHandler(GCalHelper appWindow, ArrayListModel<com.google.gdata.data.calendar.CalendarEventEntry> events, java.lang.String username, java.lang.String password)
          This constructor takes the mother app window, a list of events to be uploaded, and the user credentials for authenticating with the calendar service.
 
Method Summary
 void run()
          This is the implementation of the Runnable Interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarDataHandler

public CalendarDataHandler(GCalHelper appWindow,
                           ArrayListModel<com.google.gdata.data.calendar.CalendarEventEntry> events,
                           java.lang.String username,
                           java.lang.String password)
This constructor takes the mother app window, a list of events to be uploaded, and the user credentials for authenticating with the calendar service.

Method Detail

run

public void run()
This is the implementation of the Runnable Interface. A connection is set up, the user is authenticated and events are added to the calendar feed. A list of the events that were uploaded are reported back to the main thread.

Specified by:
run in interface java.lang.Runnable