Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
DomainFilterPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.discovery.ui;
20 
25 
29 public class DomainFilterPanel extends AbstractFiltersPanel {
30 
31  private static final long serialVersionUID = 1L;
32  private static final SearchData.Type TYPE = SearchData.Type.DOMAIN;
33 
38  public DomainFilterPanel() {
39  super();
41  addFilter(new DataSourceFilterPanel(), false, null, 0);
42  addFilter(new PreviouslyNotableFilterPanel(), false, null, 1);
43  addFilter(new KnownAccountTypeFilterPanel(), false, null, 1);
44  addFilter(new ArtifactTypeFilterPanel(), false, null, 1);
45  addFilter(new DateFilterPanel(), false, null, 1);
46  addFilter(new PastOccurrencesFilterPanel(TYPE), false, null, 0);
47  addPanelsToScrollPane(domainFiltersSplitPane);
48  setLastGroupingAttributeType(DiscoveryAttributes.GroupingAttributeType.LAST_ACTIVITY_DATE);
49  setLastSortingMethod(ResultsSorter.SortingMethod.BY_DOMAIN_NAME);
50  }
51 
57  @SuppressWarnings("unchecked")
58  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
59  private void initComponents() {
60 
61  javax.swing.JScrollPane domainFiltersScrollPane = new javax.swing.JScrollPane();
62  javax.swing.JPanel domainFiltersPanel = new javax.swing.JPanel();
63  domainFiltersSplitPane = new javax.swing.JSplitPane();
64 
65  setPreferredSize(new java.awt.Dimension(225, 70));
66  setLayout(new java.awt.BorderLayout());
67 
68  domainFiltersSplitPane.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(DomainFilterPanel.class, "DomainFilterPanel.domainFiltersSplitPane.border.title"))); // NOI18N
69  domainFiltersSplitPane.setResizeWeight(0.5);
70  domainFiltersSplitPane.setToolTipText(org.openide.util.NbBundle.getMessage(DomainFilterPanel.class, "DomainFilterPanel.domainFiltersSplitPane.toolTipText")); // NOI18N
71 
72  javax.swing.GroupLayout domainFiltersPanelLayout = new javax.swing.GroupLayout(domainFiltersPanel);
73  domainFiltersPanel.setLayout(domainFiltersPanelLayout);
74  domainFiltersPanelLayout.setHorizontalGroup(
75  domainFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
76  .addGroup(domainFiltersPanelLayout.createSequentialGroup()
77  .addGap(8, 8, 8)
78  .addComponent(domainFiltersSplitPane)
79  .addGap(8, 8, 8))
80  );
81  domainFiltersPanelLayout.setVerticalGroup(
82  domainFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
83  .addGroup(domainFiltersPanelLayout.createSequentialGroup()
84  .addGap(8, 8, 8)
85  .addComponent(domainFiltersSplitPane)
86  .addGap(8, 8, 8))
87  );
88 
89  domainFiltersScrollPane.setViewportView(domainFiltersPanel);
90 
91  add(domainFiltersScrollPane, java.awt.BorderLayout.CENTER);
92  }// </editor-fold>//GEN-END:initComponents
93 
94  @Override
95  SearchData.Type getType() {
96  return TYPE;
97  }
98 
99 
100  // Variables declaration - do not modify//GEN-BEGIN:variables
101  private javax.swing.JSplitPane domainFiltersSplitPane;
102  // End of variables declaration//GEN-END:variables
103 }

Copyright © 2012-2022 Basis Technology. Generated on: Thu Sep 29 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.