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.


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

Constructor & Destructor Documentation

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

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

explorerManagerallow for explorer manager sharing

Definition at line 119 of file

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

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

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 100 of file

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

Definition at line 105 of file

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

Definition at line 82 of file

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

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

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.initialize ( )
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 189 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 533 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 478 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 96 of file

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

Definition at line 119 of file

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

Definition at line 110 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 239 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 427 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 445 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 398 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 99 of file

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

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

Definition at line 47 of file

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

Definition at line 101 of file

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

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

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

Definition at line 78 of file

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

Listener for table model event and mouse clicks.

Definition at line 111 of file

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

Definition at line 82 of file

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.