List of usage examples for com.google.gwt.user.client.ui Button Button
protected Button(com.google.gwt.dom.client.Element element)
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarCreateRecurringEventDemo.java
License:Apache License
/** * Starts this demo.// ww w. jav a 2 s .co m */ private void startDemo() { service = CalendarService.newInstance("HelloGData_Calendar_CreateRecurringEventDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create an event"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { createEvent("http://www.google.com/calendar/feeds/default/private/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Calendar.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarCreateSingleEventDemo.java
License:Apache License
/** * Starts this demo./* w w w . j ava 2 s . c om*/ */ private void startDemo() { service = CalendarService.newInstance("HelloGData_Calendar_CreateSingleEventDemo_v1.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create an event"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { createEvent("http://www.google.com/calendar/feeds/default/private/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Calendar.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarDeleteCalendarDemo.java
License:Apache License
/** * Starts this demo.// www .j ava2 s.c om */ private void startDemo() { service = CalendarService.newInstance("HelloGData_Calendar_DeleteCalendarDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete a calendar"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getCalendars("http://www.google.com/calendar/feeds/default/" + "owncalendars/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Calendar.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarDeleteEventDemo.java
License:Apache License
/** * Starts this demo./* w w w .ja va2 s . c o m*/ */ private void startDemo() { service = CalendarService.newInstance("HelloGData_Calendar_DeleteEventDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete an event"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { queryCalendars("http://www.google.com/calendar/feeds/default/private/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Calendar.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarUpdateCalendarDemo.java
License:Apache License
/** * Starts this demo./*from w w w .ja va 2 s. co m*/ */ private void startDemo() { service = CalendarService.newInstance("HelloGData_Calendar_UpdateCalendarDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update a calendar"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getCalendars("http://www.google.com/calendar/feeds/default/" + "owncalendars/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Calendar.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarUpdateEventDemo.java
License:Apache License
/** * Starts this demo./* w w w. j av a2s. com*/ */ private void startDemo() { service = CalendarService.newInstance("HelloGData_Calendar_UpdateEventDemo_v12.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update an event"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { queryEvents("http://www.google.com/calendar/feeds/default/private/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Calendar.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsCreateContactDemo.java
License:Apache License
/** * Starts this demo.//from w w w. ja va 2 s . c o m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_CreateContactDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create a contact"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { createContact("http://www.google.com/m8/feeds/contacts/default/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsCreateContactGroupDemo.java
License:Apache License
/** * Starts this demo.//from w w w .j a va 2 s . co m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_CreateContactGroupDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create a contact group"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { createContactGroup("http://www.google.com/m8/feeds/groups/default/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsDeleteContactDemo.java
License:Apache License
/** * Starts this demo.//from w w w . jav a 2 s .c o m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_DeleteContactDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete a contact"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { queryContacts("http://www.google.com/m8/feeds/contacts/default/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsDeleteContactGroupDemo.java
License:Apache License
/** * Starts this demo.//from w w w . ja va 2 s .c o m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_DeleteContactGroupDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete a contact group"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getContactGroups("http://www.google.com/m8/feeds/groups/default/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Contacts.", true); } }