Class PrometheusSheetReader
java.lang.Object
io.github.tonywasher.joceanus.prometheus.sheets.PrometheusSheetReader
Load control for spreadsheets.
- Author:
- Tony Washer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrometheusSheetReader(TethysUIFactory<?> pFactory, TethysUIThreadStatusReport pReport, PrometheusSecurityPasswordManager pPasswordMgr) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSheet(PrometheusSheetDataItem<?> pSheet) Add Sheet to list.getData()get data.protected TethysUIThreadStatusReportget report.protected PrometheusSheetWorkBookget workbook.voidloadBackup(File pFile, PrometheusDataSet pData) Load a Backup Workbook.voidloadBackup(InputStream pInStream, PrometheusDataSet pData, String pName) Load a Backup Workbook.voidloadEntry(GordianZipReadFile pFile, GordianZipFileEntry pEntry) Load a Backup Workbook.protected abstract voidRegister sheets.
-
Constructor Details
-
PrometheusSheetReader
protected PrometheusSheetReader(TethysUIFactory<?> pFactory, TethysUIThreadStatusReport pReport, PrometheusSecurityPasswordManager pPasswordMgr) Constructor.- Parameters:
pFactory- the gui factorypReport- the reportpPasswordMgr- the password manager
-
-
Method Details
-
getReport
get report.- Returns:
- the report
-
getData
get data.- Returns:
- the data
-
getWorkBook
get workbook.- Returns:
- the workbook
-
addSheet
Add Sheet to list.- Parameters:
pSheet- the sheet
-
loadBackup
Load a Backup Workbook.- Parameters:
pFile- the file to loadpData- DataSet to load into- Throws:
OceanusException- on error
-
loadBackup
public void loadBackup(InputStream pInStream, PrometheusDataSet pData, String pName) throws OceanusException Load a Backup Workbook.- Parameters:
pInStream- the zip input streampData- the data to load intopName- the filename- Throws:
OceanusException- on error
-
loadEntry
Load a Backup Workbook.- Parameters:
pFile- the zip filepEntry- the zip file entry- Throws:
OceanusException- on error
-
registerSheets
protected abstract void registerSheets()Register sheets.
-