Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent Class Reference

Inherits TopComponent, org.sleuthkit.autopsy.corecomponentinterfaces.DataExplorer, and Provider.

Public Member Functions

void addOnFinishedListener (PropertyChangeListener l)
 
boolean canClose ()
 
void componentClosed ()
 
void componentOpened ()
 
Action[] getActions ()
 
DataResultTopComponent getDirectoryListing ()
 
ExplorerManager getExplorerManager ()
 
int getPersistenceType ()
 
Node getSelectedNode ()
 
TopComponent getTopComponent ()
 
BeanTreeView getTree ()
 
boolean hasMenuOpenAction ()
 
void openDirectoryListing ()
 
void propertyChange (PropertyChangeEvent evt)
 
void refreshContentTreeSafe ()
 
void setDirectoryListingActive ()
 
void viewArtifact (final BlackboardArtifact art)
 
void viewArtifactContent (BlackboardArtifact art)
 

Static Public Member Functions

static synchronized DirectoryTreeTopComponent findInstance ()
 
static synchronized DirectoryTreeTopComponent getDefault ()
 

Protected Member Functions

String preferredID ()
 

Private Member Functions

 DirectoryTreeTopComponent ()
 
void backButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void forwardButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void initComponents ()
 
void readPropertiesImpl (java.util.Properties p)
 
void refreshDataSourceTree ()
 
void resetHistory ()
 
void setSelectedNode (final String[] previouslySelectedNodePath, final String rootNodeName)
 
void subscribeToChangeEvents ()
 
void updateHistory (Node[] selectedNodes)
 

Private Attributes

javax.swing.JButton backButton
 
final LinkedList< String[]> backList
 
RootContentChildren contentChildren
 
final DataResultTopComponent dataResult = new DataResultTopComponent(Bundle.DirectoryTreeTopComponent_resultsView_title())
 
final transient ExplorerManager em = new ExplorerManager()
 
javax.swing.JButton forwardButton
 
final LinkedList< String[]> forwardList
 
javax.swing.JCheckBox showRejectedCheckBox
 
javax.swing.JScrollPane treeView
 

Static Private Attributes

static DirectoryTreeTopComponent instance
 
static final Logger LOGGER = Logger.getLogger(DirectoryTreeTopComponent.class.getName())
 
static final String PREFERRED_ID = "DirectoryTreeTopComponent"
 

Detailed Description

Top component which displays something.

Definition at line 101 of file DirectoryTreeTopComponent.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.DirectoryTreeTopComponent ( )
private

the constructor

Definition at line 115 of file DirectoryTreeTopComponent.java.

Member Function Documentation

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.addOnFinishedListener ( PropertyChangeListener  l)

Definition at line 1082 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.backButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 250 of file DirectoryTreeTopComponent.java.

boolean org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.canClose ( )
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.componentClosed ( )

Called only when top component was closed so that now it is closed on all workspaces in the system. The intent is to provide subclasses information about TopComponent's life cycle across workspaces. Subclasses will usually perform cleaning tasks here.

Definition at line 487 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.componentOpened ( )

Called only when top component was closed on all workspaces before and now is opened for the first time on some workspace. The intent is to provide subclasses information about TopComponent's life cycle across all existing workspaces. Subclasses will usually perform initializing tasks here.

to override the right click action in the white blank space area on the directory tree window

Definition at line 363 of file DirectoryTreeTopComponent.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), org.sleuthkit.autopsy.datamodel.ViewsNode.NAME, org.sleuthkit.autopsy.datamodel.ResultsNode.NAME, org.sleuthkit.autopsy.datamodel.accounts.Accounts.NAME, org.sleuthkit.autopsy.datamodel.accounts.Accounts.newToggleShowRejectedAction(), and org.sleuthkit.autopsy.corecomponents.DataResultTopComponent.open().

static synchronized DirectoryTreeTopComponent org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.findInstance ( )
static
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.forwardButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 279 of file DirectoryTreeTopComponent.java.

Action [] org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getActions ( )

Right click action for this top component window

Returns
actions the list of actions

Definition at line 553 of file DirectoryTreeTopComponent.java.

static synchronized DirectoryTreeTopComponent org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getDefault ( )
static

Gets default instance. Do not use directly: reserved for *.settings files only, i.e. deserialization routines; otherwise you could get a non-deserialized instance. To obtain the singleton instance, use findInstance.

Returns
instance - the default instance

Definition at line 314 of file DirectoryTreeTopComponent.java.

Referenced by org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.findInstance().

DataResultTopComponent org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getDirectoryListing ( )

Definition at line 169 of file DirectoryTreeTopComponent.java.

ExplorerManager org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getExplorerManager ( )

Gets the explorer manager.

Returns
the explorer manager

Definition at line 543 of file DirectoryTreeTopComponent.java.

Referenced by org.sleuthkit.autopsy.directorytree.ViewContextAction.actionPerformed().

int org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getPersistenceType ( )

Overwrite when you want to change default persistence type. Default persistence type is PERSISTENCE_ALWAYS

Returns
TopComponent.PERSISTENCE_ALWAYS

Definition at line 351 of file DirectoryTreeTopComponent.java.

Node org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getSelectedNode ( )

Gets the original selected node on the explorer manager

Returns
node the original selected Node

Definition at line 562 of file DirectoryTreeTopComponent.java.

Referenced by org.sleuthkit.autopsy.directorytree.ViewContextAction.actionPerformed().

TopComponent org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getTopComponent ( )

Gets the TopComponent for rendering this DateExplorer

Returns
the DataExplorer's TopComponent

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataExplorer.

Definition at line 850 of file DirectoryTreeTopComponent.java.

BeanTreeView org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getTree ( )

Gets the tree on this DirectoryTreeTopComponent.

Returns
tree the BeanTreeView

Definition at line 768 of file DirectoryTreeTopComponent.java.

Referenced by org.sleuthkit.autopsy.directorytree.ViewContextAction.actionPerformed().

boolean org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.hasMenuOpenAction ( )
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.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 179 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.openDirectoryListing ( )
String org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.preferredID ( )
protected

Returns the unique ID of this TopComponent

Returns
PREFERRED_ID the unique ID of this TopComponent

Definition at line 518 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.propertyChange ( PropertyChangeEvent  evt)

The "listener" that listens to any changes made in the Case.java class. It will do something based on the changes in the Case.java class.

Parameters
evtthe property change event

Checking for a current case is a stop gap measure until a different way of handling the closing of cases is worked out. Currently, remote events may be received for a case that is already closed.

Case is closed, do nothing.

Definition at line 579 of file DirectoryTreeTopComponent.java.

References org.sleuthkit.autopsy.casemodule.Case.Events.CURRENT_CASE, org.sleuthkit.autopsy.ingest.IngestManager.IngestModuleEvent.DATA_ADDED, org.sleuthkit.autopsy.casemodule.Case.Events.DATA_SOURCE_ADDED, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getDataSources(), org.sleuthkit.autopsy.casemodule.Case.getName(), org.sleuthkit.autopsy.corecomponentinterfaces.CoreComponentControl.openCoreWindows(), and org.sleuthkit.autopsy.core.RuntimeProperties.runningWithGUI.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.readPropertiesImpl ( java.util.Properties  p)
private

Definition at line 507 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.refreshContentTreeSafe ( )

Refresh the content node part of the dir tree safely in the EDT thread

Definition at line 775 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.refreshDataSourceTree ( )
private
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.resetHistory ( )
private

Resets the back and forward list, and also disable the back and forward buttons.

Definition at line 755 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.setDirectoryListingActive ( )
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.setSelectedNode ( final String[]  previouslySelectedNodePath,
final String  rootNodeName 
)
private

Set the selected node using a path to a previously selected node.

Parameters
previouslySelectedNodePathPath to a previously selected node.
rootNodeNameName of the root node to match, may be null.

Definition at line 804 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.subscribeToChangeEvents ( )
private
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.updateHistory ( Node[]  selectedNodes)
private

Definition at line 716 of file DirectoryTreeTopComponent.java.

void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.viewArtifact ( final BlackboardArtifact  art)
void org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.viewArtifactContent ( BlackboardArtifact  art)

Definition at line 1076 of file DirectoryTreeTopComponent.java.

Member Data Documentation

javax.swing.JButton org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.backButton
private

Definition at line 300 of file DirectoryTreeTopComponent.java.

final LinkedList<String[]> org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.backList
private

Definition at line 106 of file DirectoryTreeTopComponent.java.

RootContentChildren org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.contentChildren
private

Definition at line 110 of file DirectoryTreeTopComponent.java.

final DataResultTopComponent org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.dataResult = new DataResultTopComponent(Bundle.DirectoryTreeTopComponent_resultsView_title())
private

Definition at line 105 of file DirectoryTreeTopComponent.java.

final transient ExplorerManager org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.em = new ExplorerManager()
private

Definition at line 103 of file DirectoryTreeTopComponent.java.

javax.swing.JButton org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.forwardButton
private

Definition at line 301 of file DirectoryTreeTopComponent.java.

final LinkedList<String[]> org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.forwardList
private

Definition at line 107 of file DirectoryTreeTopComponent.java.

DirectoryTreeTopComponent org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.instance
staticprivate

Definition at line 104 of file DirectoryTreeTopComponent.java.

final Logger org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.LOGGER = Logger.getLogger(DirectoryTreeTopComponent.class.getName())
staticprivate

Definition at line 109 of file DirectoryTreeTopComponent.java.

final String org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.PREFERRED_ID = "DirectoryTreeTopComponent"
staticprivate

Definition at line 108 of file DirectoryTreeTopComponent.java.

javax.swing.JCheckBox org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.showRejectedCheckBox
private

Definition at line 302 of file DirectoryTreeTopComponent.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.treeView
private

Definition at line 303 of file DirectoryTreeTopComponent.java.


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

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