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

Inherits JPanel, org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer, and Provider.

Inherited by org.sleuthkit.autopsy.corecomponents.DataResultViewerTable, org.sleuthkit.autopsy.corecomponents.DataResultViewerThumbnail, and org.sleuthkit.autopsy.resultviewers.summary.DataSourceSummaryResultViewer.

Public Member Functions

 AbstractDataResultViewer (ExplorerManager explorerManager)
 
default void clearComponent ()
 
DataResultViewer createInstance ()
 
default void expandNode (Node node)
 
Component getComponent ()
 
ExplorerManager getExplorerManager ()
 
String getTitle ()
 
boolean isSupported (Node node)
 
default void resetComponent ()
 
default void setContentViewer (DataContent contentViewer)
 
void setNode (Node node)
 
void setSelectedNodes (Node[] selected)
 

Private Attributes

transient ExplorerManager explorerManager
 

Static Private Attributes

static final Logger logger = Logger.getLogger(AbstractDataResultViewer.class.getName())
 

Detailed Description

An abstract base class for an implementation of the result viewer interface that is a JPanel that displays the child nodes of a given node using a NetBeans explorer view as a child component. Such a result viewer should use the explorer manager of an ancestor top component to connect the lookups of the nodes displayed in the NetBeans explorer view to the actions global context. This class handles some key aspects of working with the ancestor top component's explorer manager.

Instances of this class can be supplied with the top component's explorer manager during construction, but the typical use case is for the result viewer to find the ancestor top component's explorer manager at runtime.

IMPORTANT: If the result viewer is going to find the ancestor top component's explorer manager at runtime, the first call to the getExplorerManager method of this class must be made AFTER the component hierarchy is fully constructed.

Definition at line 49 of file AbstractDataResultViewer.java.

Constructor & Destructor Documentation

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

Constructs an abstract base class for an implementation of the result viewer interface that is a JPanel that displays the child nodes of the given node using a NetBeans explorer view as a child component.

Parameters
explorerManagerThe explorer manager to use in the NetBeans explorer view child component of this result viewer, may be null. If null, the explorer manager will be discovered the first time getExplorerManager is called.

Definition at line 65 of file AbstractDataResultViewer.java.

References org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.explorerManager.

Member Function Documentation

default void org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.clearComponent ( )
inherited

Frees any resources tha have been allocated by this result viewer, in preparation for permanently disposing of it.

Implemented in org.sleuthkit.autopsy.corecomponents.DataResultViewerTable, org.sleuthkit.autopsy.corecomponents.DataResultViewerThumbnail, and org.sleuthkit.autopsy.resultviewers.summary.DataSourceSummaryResultViewer.

Definition at line 114 of file DataResultViewer.java.

DataResultViewer org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.createInstance ( )
inherited

Creates a new instance of this result viewer, which allows the application to use the capability provided by this result viewer in more than one result view. This is done by using the default instance of this result viewer as a "factory" for creating other instances.

Implemented in org.sleuthkit.autopsy.corecomponents.DataResultViewerThumbnail, org.sleuthkit.autopsy.corecomponents.DataResultViewerTable, and org.sleuthkit.autopsy.resultviewers.summary.DataSourceSummaryResultViewer.

default void org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.expandNode ( Node  node)
inherited

Sets the node for which this result viewer should provide a view of the underlying application data model object, and expands the node.

Parameters
nodeThe node.
Deprecated:
This API is not used by the application.

Definition at line 126 of file DataResultViewer.java.

Component org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.getComponent ( )

Gets the Swing component for this viewer.

Returns
The component.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 87 of file AbstractDataResultViewer.java.

ExplorerManager org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.getExplorerManager ( )
String org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.getTitle ( )
inherited
boolean org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.isSupported ( Node  node)
inherited

Indicates whether this result viewer is able to provide a meaningful view of the application data represented by a given node. Typically, indicates whether or not this result viewer can use the given node as the root node of its child explorer view component.

Parameters
nodeThe node.
Returns
True or false.

Implemented in org.sleuthkit.autopsy.corecomponents.DataResultViewerThumbnail, org.sleuthkit.autopsy.corecomponents.DataResultViewerTable, and org.sleuthkit.autopsy.resultviewers.summary.DataSourceSummaryResultViewer.

default void org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.resetComponent ( )
inherited

Resets the state of the Swing component for this viewer to its default state.

Implemented in org.sleuthkit.autopsy.corecomponents.DataResultViewerThumbnail.

Definition at line 107 of file DataResultViewer.java.

default void org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.setContentViewer ( DataContent  contentViewer)
inherited

Sets a custom content viewer to which nodes selected in this result viewer should be pushed via DataContent.setNode.

Parameters
contentViewerThe content viewer.
Deprecated:
This API is not used by the application.

Definition at line 138 of file DataResultViewer.java.

void org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.setNode ( Node  node)
inherited

Sets the node for which this result viewer should provide a view of the underlying application data. Typically, this means using the given node as the root node of this result viewer's child explorer view component.

Parameters
nodeThe node, may be null. If null, the call to this method is equivalent to a call to resetComponent.

Implemented in org.sleuthkit.autopsy.corecomponents.DataResultViewerThumbnail, org.sleuthkit.autopsy.corecomponents.DataResultViewerTable, and org.sleuthkit.autopsy.resultviewers.summary.DataSourceSummaryResultViewer.

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

void org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.setSelectedNodes ( Node[]  selectedNodes)

Requests selection of the given child nodes of the node passed to setNode. This method should be implemented as a no-op for result viewers that do not display the child nodes of a given root node using a NetBeans explorer view set up to use a given explorer manager.

Parameters
selectedNodesThe child nodes to select.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 78 of file AbstractDataResultViewer.java.

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

Member Data Documentation

transient ExplorerManager org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.explorerManager
private
final Logger org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.logger = Logger.getLogger(AbstractDataResultViewer.class.getName())
staticprivate

Definition at line 51 of file AbstractDataResultViewer.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.