19 package org.sleuthkit.autopsy.contentviewers.contextviewer;
21 import java.util.ArrayList;
22 import java.util.List;
27 import static org.
sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_ASSOCIATED_OBJECT;
52 public ContextSourcePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime) {
55 sourceContextArtifact = associatedArtifact;
71 @SuppressWarnings(
"unchecked")
80 setMaximumSize(
new java.awt.Dimension(495, 55));
81 setMinimumSize(
new java.awt.Dimension(300, 55));
82 setPreferredSize(
new java.awt.Dimension(495, 55));
86 public void actionPerformed(java.awt.event.ActionEvent evt) {
95 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
96 this.setLayout(layout);
97 layout.setHorizontalGroup(
98 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
99 .addGroup(layout.createSequentialGroup()
102 .addComponent(
jSourceTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE))
103 .addGroup(layout.createSequentialGroup()
106 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
108 layout.setVerticalGroup(
109 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
110 .addGroup(layout.createSequentialGroup()
111 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
114 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
116 .addGap(0, 11, Short.MAX_VALUE))
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 Color getPanelBackground()
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()