19 package org.sleuthkit.autopsy.communications;
21 import java.util.List;
22 import java.util.stream.Collectors;
23 import org.openide.explorer.ExplorerManager;
24 import org.openide.explorer.ExplorerUtils;
25 import org.openide.util.NbBundle;
26 import org.openide.windows.Mode;
27 import org.openide.windows.RetainLocation;
28 import org.openide.windows.TopComponent;
29 import org.openide.windows.WindowManager;
35 @TopComponent.Description(preferredID =
"CVTTopComponent", persistenceType = TopComponent.PERSISTENCE_NEVER)
36 @TopComponent.Registration(mode =
"cvt", openAtStartup =
false)
37 @RetainLocation(
"cvt")
38 @NbBundle.Messages(
"CVTTopComponent.name= Communications Visualization")
39 public final class CVTTopComponent extends TopComponent implements ExplorerManager.Provider {
48 setName(Bundle.CVTTopComponent_name());
54 messagesBrowserExplorerManager =
new ExplorerManager();
55 associateLookup(ExplorerUtils.createLookup(messagesBrowserExplorerManager, getActionMap()));
56 splitPane.setRightComponent(
new MessageBrowser(messagesBrowserExplorerManager));
65 acctsBrowserExplorerManager =
new ExplorerManager();
85 browseVisualizeTabPane.addTab(
org.openide.util.NbBundle.getMessage(
CVTTopComponent.class,
"CVTTopComponent.accountsBrowser.TabConstraints.tabTitle"),
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/communications/images/table.png")),
accountsBrowser);
89 filtersPane.setMinimumSize(
new java.awt.Dimension(256, 495));
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()
97 .addComponent(
filtersPane, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
98 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
99 .addComponent(
splitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1339, Short.MAX_VALUE)
102 layout.setVerticalGroup(
103 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
104 .addGroup(layout.createSequentialGroup()
106 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
107 .addComponent(
filtersPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
123 super.componentOpened();
124 WindowManager.getDefault().setTopComponentFloating(
this,
true);
151 return modes.stream().filter(mode -> mode.getName().equals(
"cvt"))
152 .collect(Collectors.toList());
final ExplorerManager messagesBrowserExplorerManager
static final long serialVersionUID
final ExplorerManager acctsBrowserExplorerManager
org.sleuthkit.autopsy.communications.AccountsBrowser accountsBrowser
javax.swing.JSplitPane splitPane
org.sleuthkit.autopsy.communications.FiltersPanel filtersPane
ExplorerManager getExplorerManager()
List< Mode > availableModes(List< Mode > modes)
javax.swing.JTabbedPane browseVisualizeTabPane