public static interface Exporter.SheetContract
Exporter.| Modifier and Type | Method and Description |
|---|---|
void |
createSheet(String spreadsheetId,
String sheetTitle,
List<List<String>> sheetRows,
TranslationConfiguration configuration,
Map<String,List<String>> translatedAutomatically,
Set<String> translatedHistorically)
Creates a new sheet in the specified spreadsheet with the given title, rows of data, and metadata, including locked
cell editors, cells translated automatically, and cells translated historically.
|
void |
deleteSheets(String spreadsheetId,
Collection<Integer> sheetIds)
Deletes specified sheets from given spreadsheet.
|
List<ASheet> |
listSheets(String spreadsheetId)
Lists all sheets of spreadsheet
spreadsheetId. |
List<ASheet> listSheets(String spreadsheetId) throws SheetsException
spreadsheetId. Does not fetch actual cells of the sheets.spreadsheetId - id of spreadsheetspreadsheetIdSheetsException - when unable to list sheetsvoid deleteSheets(String spreadsheetId, Collection<Integer> sheetIds) throws SheetsException
spreadsheetId - spreadsheet to delete sheets fromsheetIds - ids of sheets to deleteSheetsException - when unable to delete sheetsvoid createSheet(String spreadsheetId, String sheetTitle, List<List<String>> sheetRows, TranslationConfiguration configuration, Map<String,List<String>> translatedAutomatically, Set<String> translatedHistorically) throws SheetsException
spreadsheetId - the ID of the spreadsheet where the sheet will be createdsheetTitle - the title of the new sheetsheetRows - a list of rows where each row is represented as a list of stringsconfiguration - configuration of translation runtranslatedAutomatically - a mapping of cell references to their translated values, where translation was performed automaticallytranslatedHistorically - a set of cell references that were translated manually in the pastSheetsException - if the sheet cannot be created for any reasonCopyright © 2025 FG Forrest, a.s.. All rights reserved.