Autopsy  4.5.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.communications.FiltersPanel Class Reference

Inherits JPanel.

Public Member Functions

 FiltersPanel ()
 
void addNotify ()
 
void removeNotify ()
 

Private Member Functions

void applyFilters ()
 
void checkAllAccountTypesButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void checkAllDevicesButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void endCheckBoxStateChanged (javax.swing.event.ChangeEvent evt)
 
AccountTypeFilter getAccountTypeFilter ()
 
DateRangeFilter getDateRangeFilter ()
 
DeviceFilter getDeviceFilter ()
 
void initComponents ()
 
void setAllAccountTypesSelected (boolean selected)
 
void setAllDevicesSelected (boolean selected)
 
void setAllSelected (Map<?, JCheckBox > map, boolean selected)
 
void startCheckBoxStateChanged (javax.swing.event.ChangeEvent evt)
 
void unCheckAllAccountTypesButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void unCheckAllDevicesButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void updateAccountTypeFilter ()
 
void updateDeviceFilter ()
 
void updateFilters ()
 
void updateTimeZone ()
 
void validateFilters ()
 

Private Attributes

final Map< Account.Type, JCheckBox > accountTypeMap = new HashMap<>()
 
final javax.swing.JPanel accountTypePane = new javax.swing.JPanel()
 
final javax.swing.JLabel accountTypeRequiredLabel = new javax.swing.JLabel()
 
final javax.swing.JLabel accountTypesLabel = new javax.swing.JLabel()
 
final javax.swing.JButton applyFiltersButton = new javax.swing.JButton()
 
final javax.swing.JButton checkAllAccountTypesButton = new javax.swing.JButton()
 
final javax.swing.JButton checkAllDevicesButton = new javax.swing.JButton()
 
final javax.swing.JLabel dateRangeLabel = new javax.swing.JLabel()
 
final javax.swing.JLabel deviceRequiredLabel = new javax.swing.JLabel()
 
final javax.swing.JLabel devicesLabel = new javax.swing.JLabel()
 
final Map< String, JCheckBox > devicesMap = new HashMap<>()
 
final javax.swing.JPanel devicesPane = new javax.swing.JPanel()
 
ExplorerManager em
 
final javax.swing.JCheckBox endCheckBox = new javax.swing.JCheckBox()
 
final com.github.lgooddatepicker.components.DatePicker endDatePicker = new com.github.lgooddatepicker.components.DatePicker()
 
final javax.swing.JLabel filtersTitleLabel = new javax.swing.JLabel()
 
final PropertyChangeListener ingestListener
 
final javax.swing.JPanel jPanel2 = new javax.swing.JPanel()
 
final javax.swing.JPanel jPanel3 = new javax.swing.JPanel()
 
final javax.swing.JPanel jPanel4 = new javax.swing.JPanel()
 
final javax.swing.JScrollPane jScrollPane2 = new javax.swing.JScrollPane()
 
final javax.swing.JScrollPane jScrollPane3 = new javax.swing.JScrollPane()
 
boolean needsRefresh
 
final javax.swing.JLabel needsRefreshLabel = new javax.swing.JLabel()
 
final javax.swing.JButton refreshButton = new javax.swing.JButton()
 
final javax.swing.JCheckBox startCheckBox = new javax.swing.JCheckBox()
 
final com.github.lgooddatepicker.components.DatePicker startDatePicker = new com.github.lgooddatepicker.components.DatePicker()
 
final javax.swing.JButton unCheckAllAccountTypesButton = new javax.swing.JButton()
 
final javax.swing.JButton unCheckAllDevicesButton = new javax.swing.JButton()
 
final ItemListener validationListener
 

Static Private Attributes

static final Logger logger = Logger.getLogger(FiltersPanel.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

Panel that holds the Filter control widgets and translates user filtering changes into queries against the CommunicationsManager.

Definition at line 62 of file FiltersPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.communications.FiltersPanel.FiltersPanel ( )

Member Function Documentation

void org.sleuthkit.autopsy.communications.FiltersPanel.addNotify ( )
void org.sleuthkit.autopsy.communications.FiltersPanel.applyFilters ( )
private
void org.sleuthkit.autopsy.communications.FiltersPanel.checkAllAccountTypesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.checkAllDevicesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.endCheckBoxStateChanged ( javax.swing.event.ChangeEvent  evt)
private
AccountTypeFilter org.sleuthkit.autopsy.communications.FiltersPanel.getAccountTypeFilter ( )
private

Get an AccountTypeFilter that matches the state of the UI widgets

Returns
an AccountTypeFilter

Definition at line 530 of file FiltersPanel.java.

References org.sleuthkit.autopsy.communications.FiltersPanel.accountTypeMap.

Referenced by org.sleuthkit.autopsy.communications.FiltersPanel.applyFilters().

DateRangeFilter org.sleuthkit.autopsy.communications.FiltersPanel.getDateRangeFilter ( )
private
DeviceFilter org.sleuthkit.autopsy.communications.FiltersPanel.getDeviceFilter ( )
private

Get a DeviceFilter that matches the state of the UI widgets.

Returns
a DeviceFilter

Definition at line 516 of file FiltersPanel.java.

References org.sleuthkit.autopsy.communications.FiltersPanel.devicesMap.

Referenced by org.sleuthkit.autopsy.communications.FiltersPanel.applyFilters().

void org.sleuthkit.autopsy.communications.FiltersPanel.initComponents ( )
private

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 259 of file FiltersPanel.java.

References org.sleuthkit.autopsy.communications.FiltersPanel.accountTypePane, org.sleuthkit.autopsy.communications.FiltersPanel.accountTypeRequiredLabel, org.sleuthkit.autopsy.communications.FiltersPanel.accountTypesLabel, org.sleuthkit.autopsy.communications.FiltersPanel.applyFiltersButton, org.sleuthkit.autopsy.communications.FiltersPanel.checkAllAccountTypesButton, org.sleuthkit.autopsy.communications.FiltersPanel.checkAllAccountTypesButtonActionPerformed(), org.sleuthkit.autopsy.communications.FiltersPanel.checkAllDevicesButton, org.sleuthkit.autopsy.communications.FiltersPanel.checkAllDevicesButtonActionPerformed(), org.sleuthkit.autopsy.communications.FiltersPanel.dateRangeLabel, org.sleuthkit.autopsy.communications.FiltersPanel.deviceRequiredLabel, org.sleuthkit.autopsy.communications.FiltersPanel.devicesLabel, org.sleuthkit.autopsy.communications.FiltersPanel.devicesPane, org.sleuthkit.autopsy.communications.FiltersPanel.endCheckBox, org.sleuthkit.autopsy.communications.FiltersPanel.endCheckBoxStateChanged(), org.sleuthkit.autopsy.communications.FiltersPanel.endDatePicker, org.sleuthkit.autopsy.communications.FiltersPanel.filtersTitleLabel, org.sleuthkit.autopsy.communications.FiltersPanel.jPanel2, org.sleuthkit.autopsy.communications.FiltersPanel.jPanel3, org.sleuthkit.autopsy.communications.FiltersPanel.jPanel4, org.sleuthkit.autopsy.communications.FiltersPanel.jScrollPane2, org.sleuthkit.autopsy.communications.FiltersPanel.jScrollPane3, org.sleuthkit.autopsy.communications.FiltersPanel.needsRefreshLabel, org.sleuthkit.autopsy.communications.FiltersPanel.refreshButton, org.sleuthkit.autopsy.communications.FiltersPanel.startCheckBox, org.sleuthkit.autopsy.communications.FiltersPanel.startCheckBoxStateChanged(), org.sleuthkit.autopsy.communications.FiltersPanel.startDatePicker, org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllAccountTypesButton, org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllAccountTypesButtonActionPerformed(), org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllDevicesButton, and org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllDevicesButtonActionPerformed().

Referenced by org.sleuthkit.autopsy.communications.FiltersPanel.FiltersPanel().

void org.sleuthkit.autopsy.communications.FiltersPanel.removeNotify ( )
void org.sleuthkit.autopsy.communications.FiltersPanel.setAllAccountTypesSelected ( boolean  selected)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.setAllDevicesSelected ( boolean  selected)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.setAllSelected ( Map<?, JCheckBox >  map,
boolean  selected 
)
private

Helper method that sets all the checkboxes in the given map to the given selection state.

Parameters
mapA map from anything to JCheckBoxes.
selectedThe selection state to set all the checkboxes to.

Definition at line 574 of file FiltersPanel.java.

Referenced by org.sleuthkit.autopsy.communications.FiltersPanel.setAllAccountTypesSelected(), and org.sleuthkit.autopsy.communications.FiltersPanel.setAllDevicesSelected().

void org.sleuthkit.autopsy.communications.FiltersPanel.startCheckBoxStateChanged ( javax.swing.event.ChangeEvent  evt)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllAccountTypesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllDevicesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.updateAccountTypeFilter ( )
private
void org.sleuthkit.autopsy.communications.FiltersPanel.updateDeviceFilter ( )
private
void org.sleuthkit.autopsy.communications.FiltersPanel.updateFilters ( )
private
void org.sleuthkit.autopsy.communications.FiltersPanel.updateTimeZone ( )
private
void org.sleuthkit.autopsy.communications.FiltersPanel.validateFilters ( )
private

Member Data Documentation

final Map<Account.Type, JCheckBox> org.sleuthkit.autopsy.communications.FiltersPanel.accountTypeMap = new HashMap<>()
private
final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.accountTypePane = new javax.swing.JPanel()
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.accountTypeRequiredLabel = new javax.swing.JLabel()
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.accountTypesLabel = new javax.swing.JLabel()
private
final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.applyFiltersButton = new javax.swing.JButton()
private
final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.checkAllAccountTypesButton = new javax.swing.JButton()
private
final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.checkAllDevicesButton = new javax.swing.JButton()
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.dateRangeLabel = new javax.swing.JLabel()
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.deviceRequiredLabel = new javax.swing.JLabel()
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.devicesLabel = new javax.swing.JLabel()
private
final Map<String, JCheckBox> org.sleuthkit.autopsy.communications.FiltersPanel.devicesMap = new HashMap<>()
private
final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.devicesPane = new javax.swing.JPanel()
private
ExplorerManager org.sleuthkit.autopsy.communications.FiltersPanel.em
private

Definition at line 67 of file FiltersPanel.java.

final javax.swing.JCheckBox org.sleuthkit.autopsy.communications.FiltersPanel.endCheckBox = new javax.swing.JCheckBox()
private
final com.github.lgooddatepicker.components.DatePicker org.sleuthkit.autopsy.communications.FiltersPanel.endDatePicker = new com.github.lgooddatepicker.components.DatePicker()
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.filtersTitleLabel = new javax.swing.JLabel()
private
final PropertyChangeListener org.sleuthkit.autopsy.communications.FiltersPanel.ingestListener
private
final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.jPanel2 = new javax.swing.JPanel()
private
final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.jPanel3 = new javax.swing.JPanel()
private
final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.jPanel4 = new javax.swing.JPanel()
private
final javax.swing.JScrollPane org.sleuthkit.autopsy.communications.FiltersPanel.jScrollPane2 = new javax.swing.JScrollPane()
private
final javax.swing.JScrollPane org.sleuthkit.autopsy.communications.FiltersPanel.jScrollPane3 = new javax.swing.JScrollPane()
private
final Logger org.sleuthkit.autopsy.communications.FiltersPanel.logger = Logger.getLogger(FiltersPanel.class.getName())
staticprivate

Definition at line 64 of file FiltersPanel.java.

boolean org.sleuthkit.autopsy.communications.FiltersPanel.needsRefresh
private
final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.needsRefreshLabel = new javax.swing.JLabel()
private
final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.refreshButton = new javax.swing.JButton()
private
final long org.sleuthkit.autopsy.communications.FiltersPanel.serialVersionUID = 1L
staticprivate

Definition at line 65 of file FiltersPanel.java.

final javax.swing.JCheckBox org.sleuthkit.autopsy.communications.FiltersPanel.startCheckBox = new javax.swing.JCheckBox()
private
final com.github.lgooddatepicker.components.DatePicker org.sleuthkit.autopsy.communications.FiltersPanel.startDatePicker = new com.github.lgooddatepicker.components.DatePicker()
private
final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllAccountTypesButton = new javax.swing.JButton()
private
final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllDevicesButton = new javax.swing.JButton()
private
final ItemListener org.sleuthkit.autopsy.communications.FiltersPanel.validationListener
private

Listen to check box state changes and validates that at least one box is selected for device and account type ( other wise there will be no results)

Definition at line 85 of file FiltersPanel.java.

Referenced by org.sleuthkit.autopsy.communications.FiltersPanel.FiltersPanel(), org.sleuthkit.autopsy.communications.FiltersPanel.updateAccountTypeFilter(), and org.sleuthkit.autopsy.communications.FiltersPanel.updateDeviceFilter().


The documentation for this class was generated from the following file:

Copyright © 2012-2016 Basis Technology. Generated on: Tue Feb 20 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.