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

Inherits AbstractTableModel, and org.sleuthkit.autopsy.datasourcesummary.uiutils.ListTableModel< T >.

Public Member Functions

 DefaultListTableModel (List< Function< T,?extends Object >> columns)
 
int getColumnCount ()
 
List< T > getDataRows ()
 
int getRowCount ()
 
Object getValueAt (int rowIndex, int columnIndex)
 
void setDataRows (List< T > dataRows)
 

Private Attributes

final List< Function< T,?extends Object > > columns
 
List< T > dataRows = Collections.emptyList()
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

A TableModel for a JTable designed to show a list of data where each item in the list represents a row.

Definition at line 31 of file DefaultListTableModel.java.

Constructor & Destructor Documentation

Main constructor.

Parameters
columnsA list of functions where the index of each function represents the data to be displayed at each column index. The data displayed at row 'r' and column 'c' will be the result of columns.get(c).apply(dataRows.get(r)).

Definition at line 45 of file DefaultListTableModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.columns.

Member Function Documentation

Definition at line 66 of file DefaultListTableModel.java.

Returns
The list of objects supporting the rows to be displayed in the table.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ListTableModel< T >.

Definition at line 50 of file DefaultListTableModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.dataRows.

Definition at line 61 of file DefaultListTableModel.java.

Object org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.getValueAt ( int  rowIndex,
int  columnIndex 
)

Definition at line 71 of file DefaultListTableModel.java.

void org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.setDataRows ( List< T >  dataRows)

Sets the list of objects to be displayed in the table.

Parameters
dataRowsThe datarows to be displayed.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ListTableModel< T >.

Definition at line 55 of file DefaultListTableModel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.dataRows.

Member Data Documentation

final List<Function<T, ? extends Object> > org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.columns
private
List<T> org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.dataRows = Collections.emptyList()
private
final long org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultListTableModel< T >.serialVersionUID = 1L
staticprivate

Definition at line 33 of file DefaultListTableModel.java.


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

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