Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelTableExport< T, C extends ExcelCellModel > Class Template Reference

Inherits org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelExport.ExcelSheetExport, and org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelSpecialFormatExport.ExcelItemExportable.

Public Member Functions

 ExcelTableExport (String sheetName, List< ColumnModel< T, C >> columns, List< T > data)
 
 ExcelTableExport (String sheetName, List< ColumnModel< T, C >> columns, List< T > data, int columnIndent)
 
String getSheetName ()
 
void renderSheet (Sheet sheet, ExcelExport.WorksheetEnv style) throws ExcelExport.ExcelExportException
 
ItemDimensions write (Sheet sheet, int rowStart, int colStart, ExcelExport.WorksheetEnv env) throws ExcelExportException
 

Static Private Member Functions

static< T, CextendsExcelCellModel > int renderSheet (Sheet sheet, ExcelExport.WorksheetEnv worksheetEnv, int rowStart, int colStart, List< ColumnModel< T, C >> columns, List< T > data) throws ExcelExport.ExcelExportException
 

Private Attributes

final int columnIndent
 
final List< ColumnModel< T, C > > columns
 
final List< T > data
 
final String sheetName
 

Detailed Description

An excel sheet export of table data.

Definition at line 35 of file ExcelTableExport.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelTableExport< T, C extends ExcelCellModel >.ExcelTableExport ( String  sheetName,
List< ColumnModel< T, C >>  columns,
List< T >  data 
)

Main constructor.

Parameters
sheetNameThe name of the sheet. NOTE: There can be no duplicates in a workbook.
columnsThe columns of the table.
dataThe data to export.

Definition at line 50 of file ExcelTableExport.java.

org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelTableExport< T, C extends ExcelCellModel >.ExcelTableExport ( String  sheetName,
List< ColumnModel< T, C >>  columns,
List< T >  data,
int  columnIndent 
)

Main constructor.

Parameters
sheetNameThe name of the sheet. NOTE: There can be no duplicates in a workbook.
columnsThe columns of the table.
dataThe data to export.
columnIndentThe column indent.

Definition at line 63 of file ExcelTableExport.java.

Member Function Documentation

Returns the name of the sheet to use with this item.

NOTE: there can be no duplicates in a workbook.

Returns
The name of the sheet to use with this item.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelExport.ExcelSheetExport.

Definition at line 71 of file ExcelTableExport.java.

void org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelTableExport< T, C extends ExcelCellModel >.renderSheet ( Sheet  sheet,
ExcelExport.WorksheetEnv  env 
) throws ExcelExport.ExcelExportException
static <T,CextendsExcelCellModel> int org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelTableExport< T, C extends ExcelCellModel >.renderSheet ( Sheet  sheet,
ExcelExport.WorksheetEnv  worksheetEnv,
int  rowStart,
int  colStart,
List< ColumnModel< T, C >>  columns,
List< T >  data 
) throws ExcelExport.ExcelExportException
staticprivate

Renders the data into the excel sheet.

Parameters
sheetThe sheet.
worksheetEnvThe worksheet environment and preferences.
rowStartThe row to start in.
colStartThe column to start in.
columnsThe columns.
dataThe data.
Exceptions
ExcelExportException
Returns
The number of rows (including the header) written.

Definition at line 107 of file ExcelTableExport.java.

ItemDimensions org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelTableExport< T, C extends ExcelCellModel >.write ( Sheet  sheet,
int  rowStart,
int  colStart,
ExcelExport.WorksheetEnv  env 
) throws ExcelExportException

Writes the item to the sheet in the special format export sheet.

Parameters
sheetThe sheet.
rowStartThe starting row to start writing.
colStartThe starting column to start writing.
envThe excel export context.
Returns
The dimensions of what has been written.
Exceptions
ExcelExportException

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelSpecialFormatExport.ExcelItemExportable.

Definition at line 89 of file ExcelTableExport.java.

Referenced by org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.write(), and org.sleuthkit.autopsy.datasourcesummary.uiutils.BarChartExport.write().

Member Data Documentation


The documentation for this class was generated from the following file:

Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.