Results 1 to 2 of 2
- 11-13-2011, 03:04 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 4
- Rep Power
- 0
create window similar to Google Calendar with GWT
Hello, sorry if I'm posting in wrong forum but did not find the specific forum for my topic.
I am using the Google Calendar API and GWT.
I would like to create events as they are created in Google Calendar.
It seems to me that so called "quick add". You click over the day and then that window appears.
But the moment I can only enter events with a DatePicker and a Listbox.
Would you like to do as in the image:

MainEntryPoint.java:
GoogleCalendarUtils.java:Java Code:public void onClick(ClickEvent event) { String title = lb.getValue(lb.getSelectedIndex()); //getName manda o nome em branco para o google Date start = startDate.getValue(); GoogleCalendarUtils ourCalendar = new GoogleCalendarUtils(calendarUrl); ourCalendar.insertCalendarEvent(title, start, new CalendarEventEntryCallback() { @Override public void onSuccess(CalendarEventEntry result) { Window.alert("Event" + result.getTitle().getText() + "was inserted"); updateCalendarView(); } @Override public void onFailure(CallErrorException caught) { Window.alert("Error"); } }); }
Thank You!Java Code:private CalendarEventEntry createCalendarEventEntry(String title, Date startDate){ CalendarEventEntry eventEntry = CalendarEventEntry.newInstance(); eventEntry.setTitle(Text.newInstance()); eventEntry.getTitle().setText(title); When when = When.newInstance(); when.setStartTime(DateTime.newInstance(startDate)); eventEntry.addTime(when); return eventEntry; } public void insertCalendarEvent(String title, Date startDate, CalendarEventEntryCallback callback){ CalendarEventEntry eventEntry = createCalendarEventEntry(title, startDate); calendarService.insertEntry(calendarUrl, eventEntry, callback); }
-
Re: create window similar to Google Calendar with GWT
Duplicate post -- locked.
Similar Threads
-
create window similar to Google Calendar with GWT
By SaintShion in forum GWTReplies: 0Last Post: 11-13-2011, 02:47 PM -
Help with Google Window Builder!
By Zorobay in forum AWT / SwingReplies: 0Last Post: 04-29-2011, 09:06 PM -
Why does google calendar have a BLUE background in jframe.
By Mr.StevenFeldman in forum AWT / SwingReplies: 2Last Post: 03-09-2011, 05:14 AM -
How to create a google like drop down in java using a jcombobox
By charithdula in forum AWT / SwingReplies: 1Last Post: 11-14-2010, 08:44 AM -
Java application using google calendar
By nikolas8 in forum Java AppletsReplies: 3Last Post: 03-20-2009, 12:49 AM


LinkBack URL
About LinkBacks

Bookmarks