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