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.


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

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.

explorerManagerallow for explorer manager sharing

Definition at line 122 of file

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.

explorerManagerallow for explorer manager sharing
titleThe custom title.

Definition at line 133 of file

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

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

Member Function Documentation

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.assignColumns ( List< Property<?>>  props)
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

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

Definition at line 88 of file

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

Definition at line 93 of file

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

Definition at line 70 of file

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

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

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

selectedNodethe selected node
True if supported, else false

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 200 of file

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

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

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

Definition at line 544 of file

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

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

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

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

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

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

Definition at line 84 of file

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

Definition at line 108 of file

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

Definition at line 98 of file

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

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

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

Store the current column order information into a preference file.

Definition at line 438 of file

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

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

Store the current column sorting information into a preference file.

Definition at line 456 of file

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

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

Store the current column visibility information into a preference file.

Definition at line 409 of file

Member Data Documentation

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

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

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

Definition at line 104 of file

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

Definition at line 41 of file

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

Definition at line 79 of file

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

Definition at line 109 of file

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

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

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

Definition at line 78 of file

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

Listener for table model event and mouse clicks.

Definition at line 114 of file

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

Definition at line 82 of file

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

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.