List of usage examples for com.google.gwt.gdata.client.contacts ContactsService newInstance
public static native ContactsService newInstance(String applicationName) ;
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsCreateContactDemo.java
License:Apache License
/** * Starts this demo./*from www.j a 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 ww w . ja v a2 s . c om */ 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.// www . j a v 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 ww. j ava2 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); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsRetrieveContactGroupMembersDemo.java
License:Apache License
/** * Starts this demo.// w w w. j a v a2 s.com */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_RetrieveContactGroupMembersDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { getContactGroups("http://www.google.com/m8/feeds/groups/default/full"); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsRetrieveContactGroupsDemo.java
License:Apache License
/** * Starts this demo.//from w ww . ja va2 s . c om */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_RetrieveContactGroupsDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { getContactGroups("http://www.google.com/m8/feeds/groups/default/full"); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsRetrieveContactsDemo.java
License:Apache License
/** * Starts this demo.//from ww w . ja va 2 s . c om */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_RetrieveContactsDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { queryContacts("http://www.google.com/m8/feeds/contacts/default/full"); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsRetrieveContactsUsingQueryDemo.java
License:Apache License
/** * Starts this demo.//from w ww . j a va2s . c o m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_RetrieveContactsUsingQueryDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { queryContacts("http://www.google.com/m8/feeds/contacts/default/full"); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsUpdateContactDemo.java
License:Apache License
/** * Starts this demo.//from ww w. j ava 2 s . c o m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_UpdateContactDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update 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.ContactsUpdateContactGroupDemo.java
License:Apache License
/** * Starts this demo.//from www . j a v a 2 s . c o m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_UpdateContactGroupDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update 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); } }