Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Protected Attributes | Private Member Functions | Static 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  DummyNodeListener
 

Public Member Functions

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

Protected Attributes

transient ExplorerManager em
 
DataContent contentViewer
 

Private Member Functions

void initialize ()
 
void initComponents ()
 
void tableScrollPanelComponentResized (java.awt.event.ComponentEvent evt)
 
Node.Property<?>[] getChildPropertyHeaders (Node parent)
 
Node.Property[] getAllChildPropertyHeaders (Node parent)
 
void getAllChildPropertyHeadersRec (Node parent, int rows)
 
void setupTable (final Node root)
 
int getMaxColumnWidth (int index, FontMetrics metrics, int margin, int padding, List< Node.Property<?>> header, Object[][] table)
 
synchronized int getMaxColumnWidth (int index, FontMetrics metrics, int margin, int padding, String header, Object[][] table)
 

Static Private Member Functions

static Object[][] getRowValues (Node node, int maxRows)
 

Private Attributes

String firstColumnLabel = NbBundle.getMessage(DataResultViewerTable.class, "DataResultViewerTable.firstColLbl")
 
Set< Property<?> > propertiesAcc = new LinkedHashSet<>()
 
final DummyNodeListener dummyNodeListener = new DummyNodeListener()
 
javax.swing.JScrollPane tableScrollPanel
 

Static Private Attributes

static final String DUMMY_NODE_DISPLAY_NAME = NbBundle.getMessage(DataResultViewerTable.class, "DataResultViewerTable.dummyNodeDisplayName")
 

Detailed Description

DataResult sortable table viewer

Definition at line 57 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.

Definition at line 68 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 77 of file DataResultViewerTable.java.

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

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

Member Function Documentation

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 494 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.tableScrollPanel.

DataResultViewer org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.createInstance ( )
void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.expandNode ( Node  n)
Node.Property [] org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getAllChildPropertyHeaders ( Node  parent)
private

Gets regular Bean property set properties from all first children and, recursively, subchildren of Node. Note: won't work out the box for lazy load - you need to set all children props for the parent by hand

Parameters
parentNode with at least one child to get properties from
Returns
Properties,

Definition at line 179 of file DataResultViewerTable.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getAllChildPropertyHeadersRec ( Node  parent,
int  rows 
)
private

Gets regular Bean property set properties from all children and, recursively, subchildren of Node. Note: won't work out the box for lazy load - you need to set all children props for the parent by hand

Parameters
parentNode with at least one child to get properties from
rowsmax number of rows to retrieve properties for (can be used for memory optimization)

Definition at line 219 of file DataResultViewerTable.java.

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

Node.Property<?> [] org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getChildPropertyHeaders ( Node  parent)
private

Gets regular Bean property set properties from first child of Node.

Parameters
parentNode with at least one child to get properties from
Returns
Properties,

Definition at line 152 of file DataResultViewerTable.java.

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.

int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getMaxColumnWidth ( int  index,
FontMetrics  metrics,
int  margin,
int  padding,
List< Node.Property<?>>  header,
Object  table[][] 
)
private

Gets the max width of the column from the given index, header, and table.

Parameters
indexthe index of the column on the table / header
metricsthe font metrics that this component use
marginthe left/right margin of the column
paddingthe left/right padding of the column
headerthe property headers of the table
tablethe object table
Returns
max the maximum width of the column

Definition at line 450 of file DataResultViewerTable.java.

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

synchronized int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getMaxColumnWidth ( int  index,
FontMetrics  metrics,
int  margin,
int  padding,
String  header,
Object  table[][] 
)
private

Gets the max width of the column from the given index, header, and table.

Parameters
indexthe index of the column on the table / header
metricsthe font metrics that this component use
marginthe left/right margin of the column
paddingthe left/right padding of the column
headerthe column header for the comparison
tablethe object table
Returns
max the maximum width of the column

Definition at line 468 of file DataResultViewerTable.java.

static Object [][] org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getRowValues ( Node  node,
int  maxRows 
)
staticprivate
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 429 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 117 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.tableScrollPanel, and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.tableScrollPanelComponentResized().

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 238 of file DataResultViewerTable.java.

void org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.resetComponent ( )
inherited

Definition at line 96 of file AbstractDataResultViewer.java.

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 ( final Node  root)
private
void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.tableScrollPanelComponentResized ( java.awt.event.ComponentEvent  evt)
private

Member Data Documentation

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.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.DUMMY_NODE_DISPLAY_NAME = NbBundle.getMessage(DataResultViewerTable.class, "DataResultViewerTable.dummyNodeDisplayName")
staticprivate

Definition at line 62 of file DataResultViewerTable.java.

final DummyNodeListener org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.dummyNodeListener = new DummyNodeListener()
private

Definition at line 61 of file DataResultViewerTable.java.

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

Definition at line 42 of file AbstractDataResultViewer.java.

String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.firstColumnLabel = NbBundle.getMessage(DataResultViewerTable.class, "DataResultViewerTable.firstColLbl")
private

Definition at line 59 of file DataResultViewerTable.java.

Set<Property<?> > org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.propertiesAcc = new LinkedHashSet<>()
private
javax.swing.JScrollPane org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.tableScrollPanel
private

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

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