Package repast.simphony.ui.table
Class SpreadsheetUtils
java.lang.Object
repast.simphony.ui.table.SpreadsheetUtils
Utility to convert TableModels to spreadsheet files via POI
- Author:
- Eric Tatara
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
saveSingleTableAsExcel
(TableModel model, String sheetName, File file) Creates an Excel workbook from a single TableModelstatic void
saveTablesAsExcel
(Map<String, TableModel> models, File file) Creates an Excel workbook from a list of Table models, with each TableModel inserted as a seprate sheet.
-
Constructor Details
-
SpreadsheetUtils
public SpreadsheetUtils()
-
-
Method Details
-
saveSingleTableAsExcel
Creates an Excel workbook from a single TableModel- Parameters:
model
-sheetName
-file
- the name of the save file
-
saveTablesAsExcel
Creates an Excel workbook from a list of Table models, with each TableModel inserted as a seprate sheet.- Parameters:
models
- a list of TableModelfile
- the name of the save file
-