public WorksheetEntry insertWorksheet(final WorksheetEntry worksheetEntry) throws IOException, ServiceException { WorksheetEntry we = this.spreadsheetService.insert(this.spreadsheetEntry.getWorksheetFeedUrl(), worksheetEntry); this.spreadsheetEntry = this.spreadsheetEntry.getSelf(); return we; }
/** * Gets all worksheet entries that are part of this spreadsheet. * * You must be online for this to work. * * @return the list of worksheet entries */ public List<WorksheetEntry> getWorksheets() throws IOException, ServiceException { WorksheetFeed feed = state.service.getFeed(getWorksheetFeedUrl(), WorksheetFeed.class); return feed.getEntries(); }
/** * Gets all worksheet entries that are part of this spreadsheet. * * You must be online for this to work. * * @return the list of worksheet entries */ public List<WorksheetEntry> getWorksheets() throws IOException, ServiceException { WorksheetFeed feed = state.service.getFeed(getWorksheetFeedUrl(), WorksheetFeed.class); return feed.getEntries(); }