Autopsy  4.5.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.corecomponents.DataResultViewerTable Class Reference

Inherits org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.

Classes

class  ColorTagCustomRenderer
 
class  ColumnSortInfo
 
class  TableListener
 

Public Member Functions

 DataResultViewerTable (ExplorerManager explorerManager)
 
 DataResultViewerTable (ExplorerManager explorerManager, String title)
 
 DataResultViewerTable ()
 
void clearComponent ()
 
DataResultViewer createInstance ()
 
void expandNode (Node n)
 
Component getComponent ()
 
ExplorerManager getExplorerManager ()
 
Node getSelectedNode ()
 
String getTitle ()
 
boolean isSupported (Node selectedNode)
 
void resetComponent ()
 
void setContentViewer (DataContent contentViewer)
 
void setNode (Node selectedNode)
 
void setSelectedNodes (Node[] selected)
 

Protected Attributes

transient ExplorerManager em
 

Private Member Functions

synchronized void assignColumns (List< Property<?>> props)
 
void initComponents ()
 
synchronized List< Node.Property<?> > loadColumnOrder ()
 
synchronized void loadColumnSorting ()
 
synchronized void loadColumnVisibility ()
 
void populateColumnMap ()
 
void setColumnWidths ()
 
void setupTable ()
 
synchronized void storeColumnOrder ()
 
synchronized void storeColumnSorting ()
 
synchronized void storeColumnVisibility ()
 

Private Attributes

final Map< String, ETableColumn > columnMap = new HashMap<>()
 
Node currentRoot
 
Outline outline
 
org.openide.explorer.view.OutlineView outlineView
 
final Map< Integer, Property<?> > propertiesMap = new TreeMap<>()
 
final TableListener tableListener
 
final String title
 

Static Private Attributes

static final String FIRST_COLUMN_LABEL = Bundle.DataResultViewerTable_firstColLbl()
 
static final Logger logger = Logger.getLogger(DataResultViewerTable.class.getName())
 
static final long serialVersionUID = 1L
 
static final Color TAGGED_COLOR = new Color(255, 255, 195)
 

Detailed Description

A tabular viewer for the results view.

TODO (JIRA-2658): Fix DataResultViewer extension point. When this is done, restore implementation of DataResultViewerTable as a DataResultViewer service provider.

Definition at line 76 of file DataResultViewerTable.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.DataResultViewerTable ( ExplorerManager  explorerManager)

Creates a DataResultViewerTable object that is compatible with node multiple selection actions, and the default title.

Parameters
explorerManagerallow for explorer manager sharing

Definition at line 122 of file DataResultViewerTable.java.

org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.DataResultViewerTable ( ExplorerManager  explorerManager,
String  title 
)

Creates a DataResultViewerTable object that is compatible with node multiple selection actions, and a custom title.

Parameters
explorerManagerallow for explorer manager sharing
titleThe custom title.

Definition at line 133 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.initComponents(), org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outlineView, and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.title.

org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.DataResultViewerTable ( )

Creates a DataResultViewerTable object that is NOT compatible with node multiple selection actions.

Definition at line 156 of file DataResultViewerTable.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.createInstance().

Member Function Documentation

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.assignColumns ( List< Property<?>>  props)
private
void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.clearComponent ( )

Frees the objects that have been allocated by this viewer, in preparation for permanently disposing of it.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 602 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outlineView.

DataResultViewer org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.createInstance ( )
void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.expandNode ( Node  n)
Component org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.getComponent ( )
inherited

Definition at line 88 of file AbstractDataResultViewer.java.

ExplorerManager org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.getExplorerManager ( )
inherited

Definition at line 93 of file AbstractDataResultViewer.java.

Node org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.getSelectedNode ( )
inherited

Definition at line 70 of file AbstractDataResultViewer.java.

String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getTitle ( )
void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.initComponents ( )
private

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 180 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.FIRST_COLUMN_LABEL, and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outlineView.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.DataResultViewerTable().

boolean org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.isSupported ( Node  selectedNode)

Checks whether the currently selected root node is supported by this viewer

Parameters
selectedNodethe selected node
Returns
True if supported, else false

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 200 of file DataResultViewerTable.java.

synchronized List<Node.Property<?> > org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnOrder ( )
private

Gets a list of child properties (columns) in the order persisted in the preference file. Also initialized the propertiesMap with the column order.

Returns
a List<Node.Property<?>> of the properties in the persisted order.

Definition at line 544 of file DataResultViewerTable.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setupTable().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnSorting ( )
private

Reads and applies the column sorting information persisted to the preferences file. Must be called after loadColumnOrder() since it depends on propertiesMap being initialized, and after assignColumns since it cannot set the sort on columns that have not been added to the table.

Definition at line 489 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.ColumnSortInfo.getRank().

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setupTable().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnVisibility ( )
private
void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.populateColumnMap ( )
private
void org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.resetComponent ( )
inherited

Definition at line 84 of file AbstractDataResultViewer.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setColumnWidths ( )
private
void org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.setContentViewer ( DataContent  contentViewer)
inherited

Definition at line 108 of file AbstractDataResultViewer.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setNode ( Node  selectedNode)
void org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.setSelectedNodes ( Node[]  selected)
inherited

Definition at line 98 of file AbstractDataResultViewer.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setupTable ( )
private

Create Column Headers based on the Content represented by the Nodes in the table. Load persisted column order, sorting and visibility.

OutlineView makes the first column be the result of node.getDisplayName with the icon. This duplicates our first column, which is the file name, etc. So, pop that property off the list, but use its display name as the header for the column so that the header can change depending on the type of data being displayed.

NOTE: This assumes that the first property is always the one that duplicates getDisplayName(). The current implementation does not allow the first property column to be moved.

Definition at line 250 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.assignColumns(), org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TableListener.listenToVisibilityChanges(), org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnOrder(), org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnSorting(), org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnVisibility(), org.sleuthkit.autopsy.datamodel.NodeSelectionInfo.matches(), org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.populateColumnMap(), and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setColumnWidths().

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setNode().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.storeColumnOrder ( )
private

Store the current column order information into a preference file.

Definition at line 438 of file DataResultViewerTable.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TableListener.columnMoved().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.storeColumnSorting ( )
private

Store the current column sorting information into a preference file.

Definition at line 456 of file DataResultViewerTable.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TableListener.mouseClicked().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.storeColumnVisibility ( )
private

Store the current column visibility information into a preference file.

Definition at line 409 of file DataResultViewerTable.java.

Member Data Documentation

final Map<String, ETableColumn> org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.columnMap = new HashMap<>()
private

Stores references to the actual table column objects, keyed by column name, so that we can check there visibility later in storeColumnVisibility().

Definition at line 102 of file DataResultViewerTable.java.

Node org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.currentRoot
private

Definition at line 104 of file DataResultViewerTable.java.

transient ExplorerManager org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.em
protectedinherited

Definition at line 41 of file AbstractDataResultViewer.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.FIRST_COLUMN_LABEL = Bundle.DataResultViewerTable_firstColLbl()
staticprivate
final Logger org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.logger = Logger.getLogger(DataResultViewerTable.class.getName())
staticprivate

Definition at line 79 of file DataResultViewerTable.java.

Outline org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outline
private

Definition at line 109 of file DataResultViewerTable.java.

org.openide.explorer.view.OutlineView org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outlineView
private
final Map<Integer, Property<?> > org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.propertiesMap = new TreeMap<>()
private

The properties map:

stored value of column index -> property at that index

We move around stored values instead of directly using the column indices in order to not override settings for a column that may not appear in the current table view due to its collection of its children's properties.

Definition at line 95 of file DataResultViewerTable.java.

final long org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.serialVersionUID = 1L
staticprivate

Definition at line 78 of file DataResultViewerTable.java.

final TableListener org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.tableListener
private

Listener for table model event and mouse clicks.

Definition at line 114 of file DataResultViewerTable.java.

final Color org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TAGGED_COLOR = new Color(255, 255, 195)
staticprivate

Definition at line 82 of file DataResultViewerTable.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.title
private

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

Copyright © 2012-2016 Basis Technology. Generated on: Tue Feb 20 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.