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

Inherits org.sleuthkit.autopsy.corecomponents.AbstractDataResultViewer.

Inherited by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributesSearchResultsViewerTable.

Classes

class  ColumnSortInfo
 
class  CountCellRenderer
 
class  HasCommentCellRenderer
 
enum  HasCommentStatus
 
class  IconRendererTableListener
 
class  PagingSupport
 
enum  Score
 
class  ScoreCellRenderer
 
class  TableListener
 

Public Member Functions

 DataResultViewerTable ()
 
 DataResultViewerTable (ExplorerManager explorerManager)
 
 DataResultViewerTable (ExplorerManager explorerManager, String title)
 
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 ()
 

Private Member Functions

synchronized void assignColumns (List< Property<?>> props)
 
void compactPropertiesMap ()
 
void exportCSVButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void gotoPageTextFieldActionPerformed (java.awt.event.ActionEvent evt)
 
void initComponents ()
 
void initializePagingSupport ()
 
synchronized List< Node.Property<?> > loadColumnOrder ()
 
synchronized void loadColumnSorting ()
 
synchronized void loadColumnVisibility ()
 
void pageNextButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void pagePrevButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void populateColumnMap ()
 
void setupTable ()
 
synchronized void storeColumnOrder ()
 
synchronized void storeColumnSorting ()
 
synchronized void storeColumnVisibility ()
 

Private Attributes

final Map< String, ETableColumn > columnMap
 
javax.swing.JButton exportCSVButton
 
javax.swing.JLabel gotoPageLabel
 
javax.swing.JTextField gotoPageTextField
 
final IconRendererTableListener iconRendererListener
 
final Map< String, PagingSupportnodeNameToPagingSupportMap = new ConcurrentHashMap<>()
 
final Outline outline
 
org.openide.explorer.view.OutlineView outlineView
 
final TableListener outlineViewListener
 
javax.swing.JLabel pageLabel
 
javax.swing.JButton pageNextButton
 
javax.swing.JLabel pageNumLabel
 
javax.swing.JButton pagePrevButton
 
javax.swing.JLabel pagesLabel
 
PagingSupport pagingSupport = null
 
final Map< Integer, Property<?> > propertiesMap
 
Node rootNode
 
final String title
 

Static Private Attributes

static final int COLUMN_PADDING = 15
 
static final ImageIcon COMMENT_ICON = new ImageIcon(ImageUtilities.loadImage(NOTEPAD_ICON_PATH, false))
 
static final int FIRST_COL_ADDITIONAL_WIDTH = 0
 
static final String FIRST_COLUMN_LABEL = Bundle.DataResultViewerTable_firstColLbl()
 
static final ImageIcon INTERESTING_SCORE_ICON = new ImageIcon(ImageUtilities.loadImage(YELLOW_CIRCLE_ICON_PATH, false))
 
static final Logger LOGGER = Logger.getLogger(DataResultViewerTable.class.getName())
 
static final int MAX_COLUMN_WIDTH = 300
 
static final int MIN_COLUMN_WIDTH = 30
 
static final int MIN_ROW_HEIGHT = 10
 
static final ImageIcon NOTABLE_ICON_SCORE = new ImageIcon(ImageUtilities.loadImage(RED_CIRCLE_ICON_PATH, false))
 
static final String NOTEPAD_ICON_PATH = "org/sleuthkit/autopsy/images/notepad16.png"
 
static final String RED_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/red-circle-exclamation.png"
 
static final int SAMPLE_ROW_NUM = 100
 
static final int SCROLL_BAR_WIDTH = ((Integer) UIManager.get("ScrollBar.width")).intValue()
 
static final long serialVersionUID = 1L
 
static final String YELLOW_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/yellow-circle-yield.png"
 

Detailed Description

A tabular result viewer that displays the children of the given root node using an OutlineView.

Instances of this class should use the explorer manager of an ancestor top component to connect the lookups of the nodes displayed in the OutlineView to the actions global context. The explorer manager can be supplied during construction, but the typical use case is for the result viewer to find the ancestor top component's explorer manager at runtime.

Definition at line 103 of file DataResultViewerTable.java.

Constructor & Destructor Documentation

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

Constructs a tabular result viewer that displays the children of the given root node using an OutlineView. The viewer should have an ancestor top component to connect the lookups of the nodes displayed in the OutlineView to the actions global context. The explorer manager will be discovered at runtime.

Definition at line 164 of file DataResultViewerTable.java.

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

Constructs a tabular result viewer that displays the children of a given root node using an OutlineView. The viewer should have an ancestor top component to connect the lookups of the nodes displayed in the OutlineView to the actions global context.

Parameters
explorerManagerThe explorer manager of the ancestor top component.

Definition at line 177 of file DataResultViewerTable.java.

org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.DataResultViewerTable ( ExplorerManager  explorerManager,
String  title 
)

Constructs a tabular result viewer that displays the children of a given root node using an OutlineView with a given title. The viewer should have an ancestor top component to connect the lookups of the nodes displayed in the OutlineView to the actions global context.

Parameters
explorerManagerThe explorer manager of the ancestor top component.
titleThe title.

Definition at line 191 of file DataResultViewerTable.java.

Member Function Documentation

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

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().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.assignColumns ( List< Property<?>>  props)
private

Definition at line 588 of file DataResultViewerTable.java.

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

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.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.compactPropertiesMap ( )
private

Makes properties map 0-indexed and re-arranges elements to make sure the indexes are continuous.

Definition at line 780 of file DataResultViewerTable.java.

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

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.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.exportCSVButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
TableColumnModel org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.getColumnModel ( )
protected
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 ( )

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.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.gotoPageTextFieldActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 1490 of file DataResultViewerTable.java.

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

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.FIRST_COLUMN_LABEL.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.initializePagingSupport ( )
private

Set up a change listener so we know when the user changes the page size

If multiple nodes have been viewed we have to notify all of them about the change in page size.

Definition at line 239 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.core.UserPreferences.addChangeListener(), org.sleuthkit.autopsy.core.UserPreferences.RESULTS_TABLE_PAGE_SIZE, and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.PagingSupport.togglePageControls().

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

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.

synchronized List<Node.Property<?> > org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnOrder ( )
private

Gets a list of child properties (columns) in the order persisted in the preference file. Also initialized the properties map with the column order.

Returns
a List<Node.Property<?>> of the properties in the persisted order.

Definition at line 734 of file DataResultViewerTable.java.

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnSorting ( )
private

Reads and applies the column sorting information persisted to the preferences file. Must be called after loadColumnOrder, since it depends on the properties map being initialized, and after assignColumns, since it cannot set the sort on columns that have not been added to the table.

Definition at line 683 of file DataResultViewerTable.java.

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.loadColumnVisibility ( )
private

Reads and applies the column visibility information persisted to the preferences file.

Definition at line 709 of file DataResultViewerTable.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pageNextButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 1486 of file DataResultViewerTable.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pagePrevButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 1482 of file DataResultViewerTable.java.

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.populateColumnMap ( )
private

Definition at line 507 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.corecomponents.DataResultViewerTable.setColumnWidths ( )
protected

Definition at line 526 of file DataResultViewerTable.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.corecomponents.DataResultViewerTable.setNode ( Node  rootNode)

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().

void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.setupTable ( )
private

Sets up the Outline view of this tabular result viewer by creating column headers based on the children of the current root node. The persisted column order, sorting and visibility is used.

Definition at line 416 of file DataResultViewerTable.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.TableListener.listenToVisibilityChanges(), and org.sleuthkit.autopsy.datamodel.NodeSelectionInfo.matches().

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.storeColumnOrder ( )
private

Persists the current column ordering for the child OutlineView of this tabular result viewer using a preferences file.

Definition at line 634 of file DataResultViewerTable.java.

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.storeColumnSorting ( )
private

Persists the current column sorting information using a preferences file.

Definition at line 651 of file DataResultViewerTable.java.

synchronized void org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.storeColumnVisibility ( )
private

Persists the current column visibility information for the child OutlineView of this tabular result viewer using a preferences file.

Definition at line 608 of file DataResultViewerTable.java.

Member Data Documentation

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.COLUMN_PADDING = 15
staticprivate

Definition at line 112 of file DataResultViewerTable.java.

final Map<String, ETableColumn> org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.columnMap
private

Definition at line 138 of file DataResultViewerTable.java.

final ImageIcon org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.COMMENT_ICON = new ImageIcon(ImageUtilities.loadImage(NOTEPAD_ICON_PATH, false))
staticprivate

Definition at line 132 of file DataResultViewerTable.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.exportCSVButton
private

Definition at line 1506 of file DataResultViewerTable.java.

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.FIRST_COL_ADDITIONAL_WIDTH = 0
staticprivate

Definition at line 127 of file DataResultViewerTable.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.FIRST_COLUMN_LABEL = Bundle.DataResultViewerTable_firstColLbl()
staticprivate
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.gotoPageLabel
private

Definition at line 1507 of file DataResultViewerTable.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.gotoPageTextField
private

Definition at line 1508 of file DataResultViewerTable.java.

final IconRendererTableListener org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.iconRendererListener
private

Definition at line 142 of file DataResultViewerTable.java.

final ImageIcon org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.INTERESTING_SCORE_ICON = new ImageIcon(ImageUtilities.loadImage(YELLOW_CIRCLE_ICON_PATH, false))
staticprivate

Definition at line 133 of file DataResultViewerTable.java.

final Logger org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.LOGGER = Logger.getLogger(DataResultViewerTable.class.getName())
staticprivate

Definition at line 106 of file DataResultViewerTable.java.

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.MAX_COLUMN_WIDTH = 300
staticprivate

Definition at line 118 of file DataResultViewerTable.java.

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.MIN_COLUMN_WIDTH = 30
staticprivate

Definition at line 115 of file DataResultViewerTable.java.

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.MIN_ROW_HEIGHT = 10
staticprivate

Definition at line 121 of file DataResultViewerTable.java.

final Map<String, PagingSupport> org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.nodeNameToPagingSupportMap = new ConcurrentHashMap<>()
private

Multiple nodes may have been visited in the context of this DataResultViewerTable. We keep track of the page state for these nodes in the following map.

Definition at line 150 of file DataResultViewerTable.java.

final ImageIcon org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.NOTABLE_ICON_SCORE = new ImageIcon(ImageUtilities.loadImage(RED_CIRCLE_ICON_PATH, false))
staticprivate

Definition at line 134 of file DataResultViewerTable.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.NOTEPAD_ICON_PATH = "org/sleuthkit/autopsy/images/notepad16.png"
staticprivate

Definition at line 129 of file DataResultViewerTable.java.

final Outline org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outline
private

Definition at line 140 of file DataResultViewerTable.java.

org.openide.explorer.view.OutlineView org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outlineView
private

Definition at line 1509 of file DataResultViewerTable.java.

final TableListener org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.outlineViewListener
private

Definition at line 141 of file DataResultViewerTable.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pageLabel
private

Definition at line 1510 of file DataResultViewerTable.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pageNextButton
private

Definition at line 1511 of file DataResultViewerTable.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pageNumLabel
private

Definition at line 1512 of file DataResultViewerTable.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pagePrevButton
private

Definition at line 1513 of file DataResultViewerTable.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pagesLabel
private

Definition at line 1514 of file DataResultViewerTable.java.

PagingSupport org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.pagingSupport = null
private

The paging support instance for the current node.

Definition at line 155 of file DataResultViewerTable.java.

final Map<Integer, Property<?> > org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.propertiesMap
private

Definition at line 139 of file DataResultViewerTable.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.RED_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/red-circle-exclamation.png"
staticprivate

Definition at line 130 of file DataResultViewerTable.java.

Node org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.rootNode
private

Definition at line 143 of file DataResultViewerTable.java.

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.SAMPLE_ROW_NUM = 100
staticprivate

Definition at line 109 of file DataResultViewerTable.java.

final int org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.SCROLL_BAR_WIDTH = ((Integer) UIManager.get("ScrollBar.width")).intValue()
staticprivate

Definition at line 124 of file DataResultViewerTable.java.

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

Definition at line 105 of file DataResultViewerTable.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.title
private

Definition at line 137 of file DataResultViewerTable.java.

final String org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.YELLOW_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/yellow-circle-yield.png"
staticprivate

Definition at line 131 of file DataResultViewerTable.java.


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.