Autopsy  4.19.3
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.

Public Member Functions

 DefaultCellModel (T data)
 
 DefaultCellModel (T data, Function< T, String > stringConverter)
 
getData ()
 
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
 
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 44 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 55 of file DefaultCellModel.java.

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

Member Function Documentation

Returns
The horizontal alignment for the text in the cell.

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

Definition at line 94 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 111 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 77 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 105 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 140 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 128 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 88 of file DefaultCellModel.java.

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

Member Data Documentation

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-2022 Basis Technology. Generated on: Sat Sep 24 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.