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 ContextUsagePanel(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()
89 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
90 .addComponent(
jUsageTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
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.LEADING)
103 .addComponent(
jUsageNameLabel, javax.swing.GroupLayout.Alignment.TRAILING))
104 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
113 if (sourceContextArtifact != null) {
void viewArtifact(final BlackboardArtifact art)
void showUsageButton(boolean show)
javax.swing.JLabel jUsageNameLabel
static final List< BlackboardArtifact.ARTIFACT_TYPE > SOURCE_CONTEXT_ARTIFACTS
final BlackboardArtifact sourceContextArtifact
javax.swing.JButton jUsageGoToResultButton
void setUsageName(String nameLabel)
javax.swing.JLabel jUsageTextLabel
void jUsageGoToResultButtonActionPerformed(java.awt.event.ActionEvent evt)
ContextUsagePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact)
static final long serialVersionUID
void setUsageText(String text)
void showUsageText(boolean show)
static synchronized DirectoryTreeTopComponent findInstance()