….Code Examples of com.google.gdata.client.spreadsheet.Extends the basic {@link GoogleService} abstraction to define a service that is preconfigured for access to the Google Spreadsheets data API.
* Runs the demo.
*
* @param args IGNORED
*/
public static void main(String[] args) {
new LoginFrame(new SpreadsheetService(“SpreadsheetApiDemo-1”),
“(username)”, “”);
}
/**
* Shows a pop-up dialog box alerting the user of an error.
private FeedURLFactory factory;
public ImportClient() throws Exception {
factory = FeedURLFactory.getDefault();
service = new SpreadsheetService(“gdata-sample-spreadsheetimport”);
}
/**
* Creates a client object for which the provided username and password
* produces a valid authentication.
* @throws Exception if error is encountered, such as invalid username and
* password pair
*/
public IndexClient(String username, String password) throws Exception {
factory = FeedURLFactory.getDefault();
service = new SpreadsheetService(“gdata-sample-spreadhsheetindex”);
service.setUserCredentials(username, password);
}
/**
* Retrieves the spreadsheets that the authenticated user has access to.
if (help || username == null || password == null) {
usage();
System.exit(1);
}
ListDemo demo = new ListDemo(new SpreadsheetService(“List Demo”),
System.out);
demo.run(username, password);
}
usage();
System.exit(1);
}
final String appName = “sampleCo-WorksheetDemo-0.9”;
WorksheetDemo demo = new WorksheetDemo(new SpreadsheetService(appName),
System.out);
demo.run(username, password);
}
private FeedURLFactory factory;
//WorksheetEntry worksheet;
public SpreadSheet() {
//this.docsService = new DocsService(“Oxseed.com-thuytest-1.0”);
this.service = new SpreadsheetService(“”);
this.factory = FeedURLFactory.getDefault();
}
public SpreadsheetService get_service(){
return service;
Related Class of com.google.gdata.client.spreadsheet.SpreadsheetService
Copyright © 2011 www.androidadb.com. All rights reserved. All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc. Contact . See also:
|
|
|





