Autopsy  4.4.1
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 ()
 
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

DataContent contentViewer
 
transient ExplorerManager em
 

Private Member Functions

synchronized void assignColumns (List< Property<?>> props)
 
void initComponents ()
 
void initialize ()
 
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<>()
 
TableListener tableListener
 

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(200, 210, 220)
 

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.

Parameters
explorerManagerallow for explorer manager sharing

Definition at line 119 of file DataResultViewerTable.java.

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

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

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

Definition at line 128 of file DataResultViewerTable.java.

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

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 591 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 100 of file AbstractDataResultViewer.java.

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

Definition at line 105 of file AbstractDataResultViewer.java.

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

Definition at line 82 of file AbstractDataResultViewer.java.

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

Gets the title of this viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 581 of file DataResultViewerTable.java.

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 169 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.initialize().

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.initialize ( )
private
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 189 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 533 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 478 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 96 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 119 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 110 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 239 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 427 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 445 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 398 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 99 of file DataResultViewerTable.java.

DataContent org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.contentViewer
protectedinherited

Content viewer to respond to selection events Either the main one, or custom one if set

Definition at line 47 of file AbstractDataResultViewer.java.

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

Definition at line 101 of file DataResultViewerTable.java.

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

Definition at line 42 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 106 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 92 of file DataResultViewerTable.java.

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

Definition at line 78 of file DataResultViewerTable.java.

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

Listener for table model event and mouse clicks.

Definition at line 111 of file DataResultViewerTable.java.

final Color org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TAGGED_COLOR = new Color(200, 210, 220)
staticprivate

Definition at line 82 of file DataResultViewerTable.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Fri Sep 29 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.