19 package org.sleuthkit.autopsy.contentviewers.contextviewer;
21 import java.util.ArrayList;
22 import java.util.List;
25 import static org.
sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_ASSOCIATED_OBJECT;
47 public ContextSourcePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact) {
50 sourceContextArtifact = associatedArtifact;
60 @SuppressWarnings(
"unchecked")
68 setBackground(
new java.awt.Color(255, 255, 255));
69 setPreferredSize(
new java.awt.Dimension(495, 75));
73 public void actionPerformed(java.awt.event.ActionEvent evt) {
82 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
83 this.setLayout(layout);
84 layout.setHorizontalGroup(
85 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86 .addGroup(layout.createSequentialGroup()
90 .addComponent(
jSourceTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
91 .addGap(260, 260, 260))
92 .addGroup(layout.createSequentialGroup()
95 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
97 layout.setVerticalGroup(
98 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
99 .addGroup(layout.createSequentialGroup()
101 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
104 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
115 if (sourceContextArtifact != null) {
void setSourceName(String nameLabel)
void viewArtifact(final BlackboardArtifact art)
ContextSourcePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact)
void jSourceGoToResultButtonActionPerformed(java.awt.event.ActionEvent evt)
void showSourceButton(boolean show)
static final long serialVersionUID
javax.swing.JLabel jSourceNameLabel
javax.swing.JLabel jSourceTextLabel
void setSourceText(String text)
static final List< BlackboardArtifact.ARTIFACT_TYPE > SOURCE_CONTEXT_ARTIFACTS
javax.swing.JButton jSourceGoToResultButton
void showSourceText(boolean show)
final BlackboardArtifact sourceContextArtifact
static synchronized DirectoryTreeTopComponent findInstance()