19 package org.sleuthkit.autopsy.discovery.ui;
28 final class VideoFilterPanel
extends AbstractFiltersPanel {
30 private static final long serialVersionUID = 1L;
31 private static final SearchData.
Type TYPE = SearchData.
Type.VIDEO;
36 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
40 SizeFilterPanel sizeFilterPanel =
new SizeFilterPanel(TYPE);
41 int[] sizeIndicesSelected = {3, 4, 5};
42 addFilter(sizeFilterPanel,
true, sizeIndicesSelected, 0);
43 addFilter(
new DataSourceFilterPanel(),
false, null, 0);
44 int[] pastOccurrencesIndices;
45 if (!CentralRepository.isEnabled()) {
46 pastOccurrencesIndices =
new int[]{0};
48 pastOccurrencesIndices =
new int[]{2, 3, 4};
50 addFilter(
new PastOccurrencesFilterPanel(TYPE),
true, pastOccurrencesIndices, 0);
51 addFilter(
new UserCreatedFilterPanel(),
false, null, 1);
52 addFilter(
new HashSetFilterPanel(),
false, null, 1);
53 addFilter(
new InterestingItemsFilterPanel(),
false, null, 1);
54 addFilter(
new ObjectDetectedFilterPanel(),
false, null, 1);
55 addFilter(
new ParentFolderFilterPanel(),
false, null, 1);
56 addPanelsToScrollPane(videoFiltersSplitPane);
64 @SuppressWarnings(
"unchecked")
66 private
void initComponents() {
68 javax.swing.JScrollPane videoFiltersScrollPane =
new javax.swing.JScrollPane();
69 javax.swing.JPanel videoFiltersPanel =
new javax.swing.JPanel();
70 videoFiltersSplitPane =
new javax.swing.JSplitPane();
72 setLayout(
new java.awt.BorderLayout());
74 videoFiltersScrollPane.setPreferredSize(
new java.awt.Dimension(312, 102));
76 videoFiltersPanel.setPreferredSize(
new java.awt.Dimension(310, 100));
78 videoFiltersSplitPane.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(VideoFilterPanel.class,
"VideoFilterPanel.videoFiltersSplitPane.border.title")));
79 videoFiltersSplitPane.setResizeWeight(0.5);
81 javax.swing.GroupLayout videoFiltersPanelLayout =
new javax.swing.GroupLayout(videoFiltersPanel);
82 videoFiltersPanel.setLayout(videoFiltersPanelLayout);
83 videoFiltersPanelLayout.setHorizontalGroup(
84 videoFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
85 .addGroup(videoFiltersPanelLayout.createSequentialGroup()
87 .addComponent(videoFiltersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
90 videoFiltersPanelLayout.setVerticalGroup(
91 videoFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
92 .addGroup(videoFiltersPanelLayout.createSequentialGroup()
94 .addComponent(videoFiltersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)
98 videoFiltersScrollPane.setViewportView(videoFiltersPanel);
100 add(videoFiltersScrollPane, java.awt.BorderLayout.CENTER);
103 SearchData.Type getType() {
108 private javax.swing.JSplitPane videoFiltersSplitPane;
Type(int value, String displayName, Collection< String > mediaTypes, Collection< BlackboardArtifact.ARTIFACT_TYPE > artifactTypes)