Autopsy  4.7.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 ()
 
CommunicationsFilter getFilter ()
 
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 (boolean initialState)
 
void updateFilters (boolean initialState)
 
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()
 
boolean deviceAccountTypeEnabled
 
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()
 
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 triggers queries against the CommunicationsManager on user filtering changes.

Definition at line 61 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

Post an event with the new filters.

Definition at line 504 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.checkAllAccountTypesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 611 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.checkAllDevicesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 619 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.endCheckBoxStateChanged ( javax.swing.event.ChangeEvent  evt)
private

Definition at line 627 of file FiltersPanel.java.

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 539 of file FiltersPanel.java.

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

Get an DateRangeFilter that matches the state of the UI widgets

Returns
an DateRangeFilter

Definition at line 553 of file FiltersPanel.java.

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 525 of file FiltersPanel.java.

CommunicationsFilter org.sleuthkit.autopsy.communications.FiltersPanel.getFilter ( )
private

Definition at line 510 of file FiltersPanel.java.

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 270 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.removeNotify ( )
void org.sleuthkit.autopsy.communications.FiltersPanel.setAllAccountTypesSelected ( boolean  selected)
private

Set the selection state of all the account type check boxes

Parameters
selectedThe selection state to set the check boxes to.

Definition at line 581 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.setAllDevicesSelected ( boolean  selected)
private

Set the selection state of all the device check boxes

Parameters
selectedThe selection state to set the check boxes to.

Definition at line 591 of file FiltersPanel.java.

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 603 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.startCheckBoxStateChanged ( javax.swing.event.ChangeEvent  evt)
private

Definition at line 623 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllAccountTypesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 607 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllDevicesButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 615 of file FiltersPanel.java.

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

Populate the Account Types filter widgets

Definition at line 209 of file FiltersPanel.java.

void org.sleuthkit.autopsy.communications.FiltersPanel.updateDeviceFilter ( boolean  initialState)
private
void org.sleuthkit.autopsy.communications.FiltersPanel.updateFilters ( boolean  initialState)
private

Updates the filter widgets to reflect he data sources/types in the case.

Definition at line 184 of file FiltersPanel.java.

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

Definition at line 177 of file FiltersPanel.java.

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

Validate that filters are in a consistent state and will result in some results. Checks that at least one device and at least one account type is selected. Disables the apply and refresh button and shows warnings if the filters are not valid.

Definition at line 157 of file FiltersPanel.java.

Member Data Documentation

final Map<Account.Type, JCheckBox> org.sleuthkit.autopsy.communications.FiltersPanel.accountTypeMap = new HashMap<>()
private

Map from Account.Type to the checkbox for that account type's filter.

Definition at line 70 of file FiltersPanel.java.

final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.accountTypePane = new javax.swing.JPanel()
private

Definition at line 633 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.accountTypeRequiredLabel = new javax.swing.JLabel()
private

Definition at line 634 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.accountTypesLabel = new javax.swing.JLabel()
private

Definition at line 635 of file FiltersPanel.java.

final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.applyFiltersButton = new javax.swing.JButton()
private

Definition at line 636 of file FiltersPanel.java.

final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.checkAllAccountTypesButton = new javax.swing.JButton()
private

Definition at line 637 of file FiltersPanel.java.

final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.checkAllDevicesButton = new javax.swing.JButton()
private

Definition at line 638 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.dateRangeLabel = new javax.swing.JLabel()
private

Definition at line 639 of file FiltersPanel.java.

boolean org.sleuthkit.autopsy.communications.FiltersPanel.deviceAccountTypeEnabled
private

Is the device account type filter enabled or not. It should be enabled when the Table/Brows mode is active and disabled when the visualization is active. Initially false since the browse/table mode is active initially.

Definition at line 102 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.deviceRequiredLabel = new javax.swing.JLabel()
private

Definition at line 640 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.devicesLabel = new javax.swing.JLabel()
private

Definition at line 641 of file FiltersPanel.java.

final Map<String, JCheckBox> org.sleuthkit.autopsy.communications.FiltersPanel.devicesMap = new HashMap<>()
private

Map from datasource device id to the checkbox for that datasource.

Definition at line 76 of file FiltersPanel.java.

final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.devicesPane = new javax.swing.JPanel()
private

Definition at line 642 of file FiltersPanel.java.

final javax.swing.JCheckBox org.sleuthkit.autopsy.communications.FiltersPanel.endCheckBox = new javax.swing.JCheckBox()
private

Definition at line 643 of file FiltersPanel.java.

final com.github.lgooddatepicker.components.DatePicker org.sleuthkit.autopsy.communications.FiltersPanel.endDatePicker = new com.github.lgooddatepicker.components.DatePicker()
private

Definition at line 644 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.filtersTitleLabel = new javax.swing.JLabel()
private

Definition at line 645 of file FiltersPanel.java.

final PropertyChangeListener org.sleuthkit.autopsy.communications.FiltersPanel.ingestListener
private

Listens to ingest events to enable refresh button

Definition at line 81 of file FiltersPanel.java.

final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.jPanel2 = new javax.swing.JPanel()
private

Definition at line 646 of file FiltersPanel.java.

final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.jPanel3 = new javax.swing.JPanel()
private

Definition at line 647 of file FiltersPanel.java.

final javax.swing.JPanel org.sleuthkit.autopsy.communications.FiltersPanel.jPanel4 = new javax.swing.JPanel()
private

Definition at line 648 of file FiltersPanel.java.

final javax.swing.JScrollPane org.sleuthkit.autopsy.communications.FiltersPanel.jScrollPane2 = new javax.swing.JScrollPane()
private

Definition at line 649 of file FiltersPanel.java.

final javax.swing.JScrollPane org.sleuthkit.autopsy.communications.FiltersPanel.jScrollPane3 = new javax.swing.JScrollPane()
private

Definition at line 650 of file FiltersPanel.java.

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

Flag that indicates the UI is not up-sto-date with respect to the case DB and it should be refreshed (by reapplying the filters).

Definition at line 87 of file FiltersPanel.java.

final javax.swing.JLabel org.sleuthkit.autopsy.communications.FiltersPanel.needsRefreshLabel = new javax.swing.JLabel()
private

Definition at line 651 of file FiltersPanel.java.

final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.refreshButton = new javax.swing.JButton()
private

Definition at line 652 of file FiltersPanel.java.

final long org.sleuthkit.autopsy.communications.FiltersPanel.serialVersionUID = 1L
staticprivate

Definition at line 63 of file FiltersPanel.java.

final javax.swing.JCheckBox org.sleuthkit.autopsy.communications.FiltersPanel.startCheckBox = new javax.swing.JCheckBox()
private

Definition at line 653 of file FiltersPanel.java.

final com.github.lgooddatepicker.components.DatePicker org.sleuthkit.autopsy.communications.FiltersPanel.startDatePicker = new com.github.lgooddatepicker.components.DatePicker()
private

Definition at line 654 of file FiltersPanel.java.

final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllAccountTypesButton = new javax.swing.JButton()
private

Definition at line 655 of file FiltersPanel.java.

final javax.swing.JButton org.sleuthkit.autopsy.communications.FiltersPanel.unCheckAllDevicesButton = new javax.swing.JButton()
private

Definition at line 656 of file FiltersPanel.java.

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 94 of file FiltersPanel.java.


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

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