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

Inherits org.sleuthkit.autopsy.datasourcesummary.uiutils.GuiCellModel, and org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelCellModel.

Public Member Functions

 DefaultCellModel (T data)
 
 DefaultCellModel (T data, Function< T, String > stringConverter)
 
 DefaultCellModel (T data, Function< T, String > stringConverter, String excelFormatString)
 
getData ()
 
String getExcelFormatString ()
 
HorizontalAlign getHorizontalAlignment ()
 
List< MenuItemgetPopupMenu ()
 
String getText ()
 
String getTooltip ()
 
DefaultCellModel< T > setHorizontalAlignment (CellModel.HorizontalAlign alignment)
 
DefaultCellModel< T > setPopupMenu (List< MenuItem > popupMenu)
 
DefaultCellModel< T > setPopupMenuRetriever (Supplier< List< MenuItem >> menuItemSupplier)
 
DefaultCellModel< T > setTooltip (String tooltip)
 
String toString ()
 

Private Attributes

final T data
 
final String excelFormatString
 
CellModel.HorizontalAlign horizontalAlignment
 
Supplier< List< MenuItem > > menuItemSupplier
 
List< MenuItempopupMenu
 
final String text
 
String tooltip
 

Detailed Description

The default cell model.

Definition at line 30 of file DefaultCellModel.java.

Constructor & Destructor Documentation

Main constructor.

Parameters
dataThe data to be displayed in the cell.

Definition at line 45 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.data.

org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.DefaultCellModel ( data,
Function< T, String >  stringConverter 
)

Constructor.

Parameters
dataThe data to be displayed in the cell.
stringConverterThe means of converting that data to a string or null to use .toString method on object.

Definition at line 56 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.data.

org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.DefaultCellModel ( data,
Function< T, String >  stringConverter,
String  excelFormatString 
)

Constructor.

Parameters
dataThe data to be displayed in the cell.
stringConverterThe means of converting that data to a string or null to use .toString method on object.
excelFormatStringThe apache poi excel format string to use with the data.

NOTE: Only certain data types can be exported. See ExcelTableExport.createCell() for types.

Definition at line 72 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.data, org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.excelFormatString, and org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.text.

Member Function Documentation

Returns
The format string to be used with Apache POI during excel export or null if none necessary.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelCellModel.

Definition at line 90 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.excelFormatString.

Returns
The horizontal alignment for the text in the cell.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.CellModel.

Definition at line 117 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.horizontalAlignment.

Returns
The popup menu associated with this cell or null if no popup menu should be shown for this cell.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.GuiCellModel.

Definition at line 134 of file DefaultCellModel.java.

Returns
The tooltip (if any) to be displayed in the cell.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.CellModel.

Definition at line 100 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.tooltip.

DefaultCellModel<T> org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.setHorizontalAlignment ( CellModel.HorizontalAlign  alignment)

Sets the horizontal alignment for this cell model.

Parameters
alignmentThe horizontal alignment for the cell model.
Returns
As a utility, returns this.

Definition at line 128 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.horizontalAlignment.

Sets the list of items for a popup menu

Parameters
popupMenu
Returns
As a utility, returns this.

Definition at line 163 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.popupMenu.

DefaultCellModel<T> org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.setPopupMenuRetriever ( Supplier< List< MenuItem >>  menuItemSupplier)

Sets a function to lazy load the popup menu items.

Parameters
menuItemSupplierThe lazy load function for popup items.
Returns

Definition at line 151 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.menuItemSupplier.

Sets the tooltip for this cell model.

Parameters
tooltipThe tooltip for the cell model.
Returns
As a utility, returns this.

Definition at line 111 of file DefaultCellModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.tooltip.

Member Data Documentation

final String org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.excelFormatString
private
CellModel.HorizontalAlign org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.horizontalAlignment
private
Supplier<List<MenuItem> > org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultCellModel< T >.menuItemSupplier
private

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.