Autopsy  4.1
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
 
class  UpdateWrapper
 

Public Member Functions

boolean canClose ()
 
String getPreferredID ()
 
Node getRootNode ()
 
List< DataResultViewergetViewers ()
 
boolean isMain ()
 
void open ()
 
void resetTabs (Node selectedNode)
 
void setContentViewer (DataContent customContentViewer)
 
void setNode (Node selectedNode)
 
void setNumMatches (Integer numMatches)
 
void setPath (String pathText)
 
void setSelectedNodes (Node[] selected)
 
void setTitle (String title)
 
void stateChanged (ChangeEvent e)
 

Static Public Member Functions

static DataResultPanel createInstance (String title, String pathText, Node givenNode, int totalMatches)
 
static DataResultPanel createInstance (String title, String pathText, Node givenNode, int totalMatches, DataContent dataContent)
 
static DataResultPanel createInstanceUninitialized (String title, String pathText, Node givenNode, int totalMatches, DataContent dataContent)
 

Private Member Functions

 DataResultPanel ()
 
void addDataResultViewer (DataResultViewer dataResultViewer)
 
void initComponents ()
 
void setupTabs (Node selectedNode)
 

Static Private Member Functions

static void createInstanceCommon (String pathText, Node givenNode, int totalMatches, DataResultPanel newDataResult)
 

Private Attributes

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

Static Private Attributes

static final String DUMMY_NODE_DISPLAY_NAME
 
static final Logger logger = Logger.getLogger(DataResultPanel.class.getName())
 

Detailed Description

Data result panel component with its viewer tabs.

The component is a generic JPanel and it can be reused in other swing components or in a TopComponent.

Use the static factory methods to instantiate and customize the component. One option is to link a custom data content viewer to link to this viewer.

Definition at line 54 of file DataResultPanel.java.

Constructor & Destructor Documentation

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

Creates new DataResultPanel Default constructor, needed mostly for the palette/UI builder Use overrides or factory methods for more customization.

Definition at line 79 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.addDataResultViewer ( DataResultViewer  dataResultViewer)
private
boolean org.sleuthkit.autopsy.corecomponents.DataResultPanel.canClose ( )
static DataResultPanel org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstance ( String  title,
String  pathText,
Node  givenNode,
int  totalMatches 
)
static

Factory method to create, customize and open a new custom data result panel.

Parameters
titleTitle of the result panel
pathTextDescriptive text about the source of the nodes displayed
givenNodeThe new root node
totalMatchesCardinality of root node's children
Returns
a new DataResultPanel instance representing a custom data result viewer

Definition at line 134 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  givenNode,
int  totalMatches,
DataContent  dataContent 
)
static

Factory method to create, customize and open a new custom data result panel.

Parameters
titleTitle of the component window
pathTextDescriptive text about the source of the nodes displayed
givenNodeThe new root node
totalMatchesCardinality of root node's children
dataContenta handle to data content to send selection events to
Returns
a new DataResultPanel instance representing a custom data result viewer

Definition at line 156 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  pathText,
Node  givenNode,
int  totalMatches,
DataResultPanel  newDataResult 
)
staticprivate
static DataResultPanel org.sleuthkit.autopsy.corecomponents.DataResultPanel.createInstanceUninitialized ( String  title,
String  pathText,
Node  givenNode,
int  totalMatches,
DataContent  dataContent 
)
static

Factory method to create, customize and open a new custom data result panel. Does NOT call open(). Client must manually initialize by calling open().

Parameters
titleTitle of the component window
pathTextDescriptive text about the source of the nodes displayed
givenNodeThe new root node
totalMatchesCardinality of root node's children
dataContenta handle to data content to send selection events to
Returns
a new DataResultPanel instance representing a custom data result viewer

Definition at line 179 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 unique TopComponent ID of this class.

Returns
preferredID the unique ID

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 360 of file DataResultPanel.java.

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

Get child viewers within this DataResult

Returns

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 445 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 515 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 ( )

Checks if this is the main (uncloseable) instance of DataResult

Returns
true if it is the main instance, otherwise false

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 440 of file DataResultPanel.java.

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

why does this take a Node as parameter and then ignore it?

Resets the tabs based on the selected Node. If the selected node is null or not supported, disable that tab as well.

Parameters
selectedNodethe selected content Node

Definition at line 491 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  customContentViewer)

Sets content viewer to the custom one. Needs to be done before the first call to open()

Parameters
customContentViewer

Definition at line 208 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.customContentViewer.

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNode ( Node  selectedNode)
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setNumMatches ( Integer  numMatches)

Set number of matches to be displayed in the top right

Parameters
numMatches

Definition at line 616 of file DataResultPanel.java.

References org.sleuthkit.autopsy.corecomponents.DataResultPanel.numberMatchLabel.

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

void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setPath ( String  pathText)
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setSelectedNodes ( Node[]  selected)
void org.sleuthkit.autopsy.corecomponents.DataResultPanel.setTitle ( String  title)

Sets the title of this TopComponent

Parameters
titlethe given title (String)

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResult.

Definition at line 429 of file DataResultPanel.java.

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

Definition at line 459 of file DataResultPanel.java.

Member Data Documentation

DataContent org.sleuthkit.autopsy.corecomponents.DataResultPanel.customContentViewer
private
javax.swing.JTabbedPane org.sleuthkit.autopsy.corecomponents.DataResultPanel.dataResultTabbedPanel
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultPanel.directoryTablePath
private
final String org.sleuthkit.autopsy.corecomponents.DataResultPanel.DUMMY_NODE_DISPLAY_NAME
staticprivate
Initial value:
= NbBundle.getMessage(DataResultPanel.class,
"DataResultPanel.dummyNodeDisplayName")

Definition at line 71 of file DataResultPanel.java.

ExplorerManagerNodeSelectionListener org.sleuthkit.autopsy.corecomponents.DataResultPanel.emNodeSelectionListener
private

Definition at line 57 of file DataResultPanel.java.

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

Definition at line 56 of file DataResultPanel.java.

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

Definition at line 65 of file DataResultPanel.java.

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

Definition at line 70 of file DataResultPanel.java.

final Logger org.sleuthkit.autopsy.corecomponents.DataResultPanel.logger = Logger.getLogger(DataResultPanel.class.getName())
staticprivate

Definition at line 69 of file DataResultPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultPanel.matchLabel
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultPanel.numberMatchLabel
private
Node org.sleuthkit.autopsy.corecomponents.DataResultPanel.rootNode
private
final RootNodeListener org.sleuthkit.autopsy.corecomponents.DataResultPanel.rootNodeListener = new RootNodeListener()
private

Definition at line 67 of file DataResultPanel.java.

String org.sleuthkit.autopsy.corecomponents.DataResultPanel.title
private

Definition at line 66 of file DataResultPanel.java.

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

Definition at line 62 of file DataResultPanel.java.


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

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