19 package org.sleuthkit.autopsy.discovery.ui;
21 import org.openide.nodes.Node;
30 final class ContentViewerDetailsPanel
extends AbstractArtifactDetailsPanel {
32 private static final long serialVersionUID = 1L;
33 private final DataContentPanel contentViewer = DataContentPanel.createInstance();
38 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
39 ContentViewerDetailsPanel() {
49 @SuppressWarnings(
"unchecked")
51 private
void initComponents() {
53 setPreferredSize(
new java.awt.Dimension(300, 0));
54 setLayout(
new java.awt.BorderLayout());
57 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
59 public void setArtifact(BlackboardArtifact artifact) {
60 Node node = Node.EMPTY;
61 if (artifact != null) {
62 boolean useAssociatedFile = artifact.getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_DOWNLOAD.getTypeID()
63 || artifact.getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_CACHE.getTypeID();
64 node =
new BlackboardArtifactNode(artifact, useAssociatedFile);
66 contentViewer.setNode(node);