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

Inherits JPanel, org.sleuthkit.autopsy.corecomponentinterfaces.DataResult, and ChangeListener.

Classes

class  ExplorerManagerNodeSelectionListener
 
class  RootNodeListener
 

Public Member Functions

boolean canClose ()
 
String getPreferredID ()
 
Node getRootNode ()
 
List< DataResultViewergetViewers ()
 
boolean isMain ()
 
void open ()
 
void resetTabs (Node unusedSelectedNode)
 
void setContentViewer (DataContent customContentView)
 
void setNode (Node rootNode)
 
void setNumMatches (Integer numberOfChildNodes)
 
void setPath (String pathText)
 
void setSelectedNodes (Node[] selectedNodes)
 
void setTitle (String title)
 
void stateChanged (ChangeEvent event)
 

Static Public Member Functions

static DataResultPanel createInstance (String title, String pathText, Node rootNode, int totalMatches)
 
static DataResultPanel createInstance (String title, String pathText, Node rootNode, int totalMatches, DataContent customContentView)
 
static DataResultPanel createInstanceUninitialized (String title, String pathText, Node rootNode, int totalMatches, DataContent customContentView)
 

Private Member Functions

 DataResultPanel ()
 
void addResultViewer (DataResultViewer resultViewer)
 
void initComponents ()
 
void setupTabs (Node selectedNode)
 

Static Private Member Functions

static void createInstanceCommon (String title, String pathText, Node rootNode, int totalMatches, DataResultPanel resultViewPanel)
 

Private Attributes

DataContent contentView
 
javax.swing.JTabbedPane dataResultTabbedPanel
 
javax.swing.JLabel directoryTablePath
 
ExplorerManagerNodeSelectionListener emNodeSelectionListener
 
ExplorerManager explorerManager
 
boolean isMain
 
boolean listeningToTabbedPane
 
javax.swing.JLabel matchLabel
 
javax.swing.JLabel numberMatchLabel
 
final List< DataResultViewerresultViewers = new ArrayList<>()
 
Node rootNode
 
final RootNodeListener rootNodeListener = new RootNodeListener()
 

Static Private Attributes

static final int NO_TAB_SELECTED = -1
 
static final String PLEASE_WAIT_NODE_DISPLAY_NAME = NbBundle.getMessage(DataResultPanel.class, "DataResultPanel.pleasewaitNodeDisplayName")
 
static final long serialVersionUID = 1L
 

Detailed Description

A Swing JPanel with a JTabbedPane child component. The tabbed pane contains result viewers.

The "main" DataResultPanel for the desktop application has a table viewer (DataResultViewerTable) and a thumbnail viewer (DataResultViewerThumbnail), plus zero to many additional DataResultViewers, since the DataResultViewer interface is an extension point.

The "main" DataResultPanel resides in the "main" results view (DataResultTopComponent) that is normally docked into the upper right hand side of the main window of the desktop application.

The result viewers in the "main panel" are used to view the child nodes of a node selected in the tree view (DirectoryTreeTopComponent) that is normally docked into the left hand side of the main window of the desktop application.

Nodes selected in the child results viewers of a DataResultPanel are displayed in a content view (implementation of the DataContent interface) supplied the panel. The default content view is (DataContentTopComponent) is normally docked into the lower right hand side of the main window, underneath the results view. A custom content view may be specified instead.

Definition at line 67 of file DataResultPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.corecomponents.DataResultPanel.DataResultPanel ( )
private

Constructs a Swing JPanel with a JTabbedPane child component that contains result viewers (implementations of the DataResultViewer interface).

Definition at line 166 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.initComponents().

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstance(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceUninitialized().

Member Function Documentation

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.addResultViewer ( DataResultViewer  resultViewer)
private
boolean org.sleuthkit.autopsy.corecomponents.DataResultPanel.canClose ( )

Indicates whether or not this panel can be closed at the time of the call.

Returns
True or false.

Definition at line 502 of file DataResultPanel.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), org.sleuthkit.autopsy.casemodule.Case.hasData(), and org.sleuthkit.autopsy.casemodule.Case.isCaseOpen().

static DataResultPanel org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstance ( String  title,
String  pathText,
Node  rootNode,
int  totalMatches 
)
static

Constructs and opens a Swing JPanel with a JTabbedPane child component. The tabbed pane contains result viewers.

Parameters
titleThe title for the panel.
pathTextDescriptive text about the source of the nodes displayed.
rootNodeThe new root node.
totalMatchesCardinality of root node's children
Returns
A DataResultPanel instance.

Definition at line 93 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceCommon(), org.sleuthkit.autopsy.corecomponents.DataResultPanel.DataResultPanel(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.open().

static DataResultPanel org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstance ( String  title,
String  pathText,
Node  rootNode,
int  totalMatches,
DataContent  customContentView 
)
static

Constructs and opens a Swing JPanel with a JTabbedPane child component. The tabbed pane contains result viewers.

Parameters
titleThe title for the panel.
pathTextDescriptive text about the source of the nodes displayed.
rootNodeThe new root node.
totalMatchesCardinality of root node's children
customContentViewA content view to use in place of the default content view.
Returns
A DataResultPanel instance.

Definition at line 114 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceCommon(), org.sleuthkit.autopsy.corecomponents.DataResultPanel.DataResultPanel(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.open().

static void org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceCommon ( String  title,
String  pathText,
Node  rootNode,
int  totalMatches,
DataResultPanel  resultViewPanel 
)
staticprivate

Executes code common to all of the DataSreultPanel factory methods.

Parameters
titleThe title for the panel.
pathTextDescriptive text about the source of the nodes displayed.
rootNodeThe new root node.
totalMatchesCardinality of root node's children
resultViewPanelA content view to use in place of the default content view.

Definition at line 153 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNode(), org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNumMatches(), org.sleuthkit.autopsy.corecomponents.DataResultPanel.setPath(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.setTitle().

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstance(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceUninitialized().

static DataResultPanel org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceUninitialized ( String  title,
String  pathText,
Node  rootNode,
int  totalMatches,
DataContent  customContentView 
)
static

Constructs a Swing JPanel with a JTabbedPane child component. The tabbed pane contains result viewers. The panel is NOT opened; the client of this method must call open on the panel that is returned.

Parameters
titleThe title for the panel.
pathTextDescriptive text about the source of the nodes displayed.
rootNodeThe new root node.
totalMatchesCardinality of root node's children
customContentViewA content view to use in place of the default content view.
Returns
A DataResultPanel instance.

Definition at line 136 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceCommon(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.DataResultPanel().

Referenced by org.sleuthkit.autopsy.timeline.TimeLineTopComponent.TimeLineTopComponent().

String org.sleuthkit.autopsy.corecomponents.DataResultPanel.getPreferredID ( )

Gets the preferred identifier for this panel in the window system.

Returns
The preferred identifier.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 206 of file DataResultPanel.java.

Node org.sleuthkit.autopsy.corecomponents.DataResultPanel.getRootNode ( )

Gets the root node of this panel. For the "main" panel, the root node is the currently selected node in the tree view docked into the left side of the main application window.

Returns
The root node.

Definition at line 378 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.rootNode.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultTopComponent.getRootNode().

List<DataResultViewer> org.sleuthkit.autopsy.corecomponents.DataResultPanel.getViewers ( )

Gets the result viewers for this panel.

Returns
A list of result viewers.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 262 of file DataResultPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultTopComponent.getViewers().

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.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 668 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.dataResultTabbedPanel, org.sleuthkit.autopsy.corecomponents.DataResultPanel.directoryTablePath, org.sleuthkit.autopsy.corecomponents.DataResultPanel.matchLabel, and org.sleuthkit.autopsy.corecomponents.DataResultPanel.numberMatchLabel.

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

boolean org.sleuthkit.autopsy.corecomponents.DataResultPanel.isMain ( )

Gets whether or not this panel is the "main" panel used to view the child nodes of a node selected in the tree view (DirectoryTreeTopComponent) that is normally docked into the left hand side of the main window.

Returns
True or false.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 218 of file DataResultPanel.java.

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.open ( )
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.resetTabs ( Node  unusedSelectedNode)

Resets the state of the child result viewers, based on a selected root node.

Parameters
unusedSelectedNodeThe selected node.

Definition at line 469 of file DataResultPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultTopComponent.resetTabs(), and org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNode().

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setContentViewer ( DataContent  customContentView)

Sets the content view for this panel. Needs to be called before the first call to open.

Parameters
customContentViewA content view to use in place of the default content view.

Definition at line 277 of file DataResultPanel.java.

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNode ( Node  rootNode)
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNumMatches ( Integer  numberOfChildNodes)
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setPath ( String  pathText)
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setSelectedNodes ( Node[]  selectedNodes)

Sets the children of the root node that should be currently selected in this panel's result viewers.

Parameters
selectedNodesThe nodes to be selected.

Definition at line 399 of file DataResultPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultTopComponent.setSelectedNodes().

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setTitle ( String  title)

Sets the title of this panel.

Parameters
titleThe title.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 228 of file DataResultPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceCommon().

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setupTabs ( Node  selectedNode)
private
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.stateChanged ( ChangeEvent  event)

Responds to a tab selection changed event by setting the root node of the corresponding result viewer.

Parameters
eventThe change event.

Definition at line 482 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.setNode().

Member Data Documentation

DataContent org.sleuthkit.autopsy.corecomponents.DataResultPanel.contentView
private

Definition at line 79 of file DataResultPanel.java.

javax.swing.JTabbedPane org.sleuthkit.autopsy.corecomponents.DataResultPanel.dataResultTabbedPanel
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultPanel.directoryTablePath
private
ExplorerManagerNodeSelectionListener org.sleuthkit.autopsy.corecomponents.DataResultPanel.emNodeSelectionListener
private

Definition at line 75 of file DataResultPanel.java.

ExplorerManager org.sleuthkit.autopsy.corecomponents.DataResultPanel.explorerManager
private

Definition at line 74 of file DataResultPanel.java.

boolean org.sleuthkit.autopsy.corecomponents.DataResultPanel.isMain
private

Definition at line 73 of file DataResultPanel.java.

boolean org.sleuthkit.autopsy.corecomponents.DataResultPanel.listeningToTabbedPane
private

Definition at line 78 of file DataResultPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultPanel.matchLabel
private
final int org.sleuthkit.autopsy.corecomponents.DataResultPanel.NO_TAB_SELECTED = -1
staticprivate
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultPanel.numberMatchLabel
private
final String org.sleuthkit.autopsy.corecomponents.DataResultPanel.PLEASE_WAIT_NODE_DISPLAY_NAME = NbBundle.getMessage(DataResultPanel.class, "DataResultPanel.pleasewaitNodeDisplayName")
staticprivate

Definition at line 71 of file DataResultPanel.java.

final List<DataResultViewer> org.sleuthkit.autopsy.corecomponents.DataResultPanel.resultViewers = new ArrayList<>()
private

Definition at line 72 of file DataResultPanel.java.

Node org.sleuthkit.autopsy.corecomponents.DataResultPanel.rootNode
private
final RootNodeListener org.sleuthkit.autopsy.corecomponents.DataResultPanel.rootNodeListener = new RootNodeListener()
private

Definition at line 77 of file DataResultPanel.java.

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

Definition at line 69 of file DataResultPanel.java.


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

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