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;
50 public ContextUsagePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime) {
53 sourceContextArtifact = associatedArtifact;
69 @SuppressWarnings(
"unchecked")
77 setBackground(
new java.awt.Color(255, 255, 255));
78 setPreferredSize(
new java.awt.Dimension(495, 75));
82 public void actionPerformed(java.awt.event.ActionEvent evt) {
91 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
92 this.setLayout(layout);
93 layout.setHorizontalGroup(
94 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
95 .addGroup(layout.createSequentialGroup()
98 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
99 .addComponent(
jUsageTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
101 .addGroup(layout.createSequentialGroup()
104 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
106 layout.setVerticalGroup(
107 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
108 .addGroup(layout.createSequentialGroup()
110 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
112 .addComponent(
jUsageNameLabel, javax.swing.GroupLayout.Alignment.TRAILING))
113 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
122 if (sourceContextArtifact != null) {
ContextUsagePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime)
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)
static final long serialVersionUID
void setUsageText(String text)
void showUsageText(boolean show)
static synchronized DirectoryTreeTopComponent findInstance()