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

Inherits org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.

Public Member Functions

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

Protected Member Functions

void addTreeExpansionListener (TreeExpansionListener listener)
 
TableColumnModel getColumnModel ()
 
void setColumnWidths ()
 

Static Private Attributes

static final Map< String, Integer > COLUMN_WIDTHS
 
static final int DEFAULT_WIDTH = 100
 
static final Logger LOGGER = Logger.getLogger(CommonAttributesSearchResultsViewerTable.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

DataResultViewerTable which overrides the default column header width calculations. The CommonAttributesSearchResultsViewerTable presents multiple tiers of data which are not always present and it may not make sense to try to calculate the column widths for such tables by sampling rows and looking for wide cells. Rather, we just pick some reasonable values.

Definition at line 41 of file CommonAttributesSearchResultsViewerTable.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.CommonAttributesSearchResultsViewerTable ( )

Implements a DataResultViewerTable which constructs a tabular result viewer that displays the children of the given root node using an OutlineView. The explorer manager will be discovered at runtime.

Adds a TreeExpansionsListener to the outlineView to receive tree expansion events which dynamically loads children nodes when requested.

Definition at line 75 of file CommonAttributesSearchResultsViewerTable.java.

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

Member Function Documentation

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.addTreeExpansionListener ( TreeExpansionListener  listener)
protectedinherited

Adds a tree expansion listener to the OutlineView of this tabular results viewer.

Parameters
listenerThe listener

Definition at line 407 of file DataResultViewerTable.java.

Referenced by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.CommonAttributesSearchResultsViewerTable().

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.clearComponent ( )
inherited

Frees the resources that have been allocated by this tabular results viewer, in preparation for permanently disposing of it.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 812 of file DataResultViewerTable.java.

DataResultViewer org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.createInstance ( )
inherited

Creates a new instance of a tabular result viewer that displays the children of a given root node using an OutlineView. This method exists to make it possible to use the default service provider instance of this class in the "main" results view of the application, while using distinct instances in other places in the UI.

Returns
A new instance of a tabular result viewer,

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 275 of file DataResultViewerTable.java.

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.

TableColumnModel org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getColumnModel ( )
protectedinherited
Component org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.getComponent ( )
inherited

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 ( )
inherited
String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getTitle ( )
inherited

Gets the title of this tabular result viewer.

Returns
title of tab.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 286 of file DataResultViewerTable.java.

boolean org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.isSupported ( Node  candidateRootNode)
inherited

Indicates whether a given node is supported as a root node for this tabular viewer.

Parameters
candidateRootNodeThe candidate root node.
Returns

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 299 of file DataResultViewerTable.java.

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.

void org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.setColumnWidths ( )
protected
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.corecomponents.DataResultViewerTable.setNode ( Node  rootNode)
inherited

Sets the current root node of this tabular result viewer.

Parameters
rootNodeThe node to set as the current root node, possibly null.

Check to see if we have previously created a paging support class for this node.

This is the only somewhat reliable way I could find to reset the cursor after a page change. When you change page the old children nodes will be removed and new ones added.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataResultViewer.

Definition at line 310 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TableListener.listenToVisibilityChanges(), and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.PagingSupport.updateControls().

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

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

final Map<String, Integer> org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.COLUMN_WIDTHS
staticprivate
final int org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.DEFAULT_WIDTH = 100
staticprivate
final Logger org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.LOGGER = Logger.getLogger(CommonAttributesSearchResultsViewerTable.class.getName())
staticprivate
final long org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.serialVersionUID = 1L
staticprivate

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

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