19 package org.sleuthkit.autopsy.contentviewers.contextviewer;
21 import java.util.ArrayList;
22 import java.util.List;
26 import static org.
sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_ASSOCIATED_OBJECT;
51 public ContextSourcePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime) {
54 sourceContextArtifact = associatedArtifact;
70 @SuppressWarnings(
"unchecked")
78 setBackground(
new java.awt.Color(255, 255, 255));
79 setPreferredSize(
new java.awt.Dimension(495, 75));
83 public void actionPerformed(java.awt.event.ActionEvent evt) {
92 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
93 this.setLayout(layout);
94 layout.setHorizontalGroup(
95 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
96 .addGroup(layout.createSequentialGroup()
100 .addComponent(
jSourceTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
101 .addGap(260, 260, 260))
102 .addGroup(layout.createSequentialGroup()
105 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
107 layout.setVerticalGroup(
108 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
109 .addGroup(layout.createSequentialGroup()
111 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
114 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
125 if (sourceContextArtifact != null) {
void setSourceName(String nameLabel)
void viewArtifact(final BlackboardArtifact art)
void jSourceGoToResultButtonActionPerformed(java.awt.event.ActionEvent evt)
void showSourceButton(boolean show)
ContextSourcePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime)
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()