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

Inherits JPanel, and DocumentListener.

Public Member Functions

void changedUpdate (DocumentEvent e)
 
String getContentPaths ()
 
boolean getNoFatOrphans ()
 
int getSectorSize ()
 
String getTimeZone ()
 
void insertUpdate (DocumentEvent e)
 
void readSettings ()
 
void removeUpdate (DocumentEvent e)
 
void reset ()
 
void select ()
 
void setContentPath (String s)
 
void storeSettings ()
 
boolean validatePanel ()
 

Static Public Member Functions

static synchronized ImageFilePanel createInstance (String context, List< FileFilter > fileChooserFilters)
 

Private Member Functions

 ImageFilePanel (String context, List< FileFilter > fileChooserFilters)
 
void browseButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void createTimeZoneList ()
 
JFileChooser getChooser ()
 
JTextField getMd5TextFieldField ()
 
JTextField getPathTextField ()
 
JTextField getSha1TextField ()
 
JTextField getSha256TextField ()
 
void initComponents ()
 
boolean isImagePathValid ()
 
void setHashValuesComponentsEnabled (boolean enabled)
 
void updateHelper ()
 

Private Attributes

javax.swing.JButton browseButton
 
final String contextName
 
javax.swing.JLabel errorLabel
 
JFileChooser fileChooser
 
final List< FileFilter > fileChooserFilters
 
final JFileChooserFactory fileChooserHelper = new JFileChooserFactory()
 
javax.swing.JLabel hashValuesLabel
 
javax.swing.JLabel hashValuesNoteLabel
 
javax.swing.JLabel md5HashLabel
 
javax.swing.JTextField md5HashTextField
 
javax.swing.JCheckBox noFatOrphansCheckbox
 
javax.swing.JLabel pathLabel
 
javax.swing.JTextField pathTextField
 
javax.swing.JComboBox< String > sectorSizeComboBox
 
javax.swing.JLabel sectorSizeLabel
 
javax.swing.JLabel sha1HashLabel
 
javax.swing.JTextField sha1HashTextField
 
javax.swing.JLabel sha256HashLabel
 
javax.swing.JTextField sha256HashTextField
 
javax.swing.JComboBox< String > timeZoneComboBox
 
javax.swing.JLabel timeZoneLabel
 

Static Private Attributes

static final String PROP_LASTIMAGE_PATH = "LBL_LastImage_PATH"
 
static final String[] SECTOR_SIZE_CHOICES = {"Auto Detect", "512", "1024", "2048", "4096"}
 
static final long serialVersionUID = 1L
 

Detailed Description

Panel for adding an image file such as .img, .E0x, .00x, etc. Allows the user to select a file as well as choose the timezone and whether to ignore orphan files in FAT32.

Definition at line 47 of file ImageFilePanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.casemodule.ImageFilePanel.ImageFilePanel ( String  context,
List< FileFilter >  fileChooserFilters 
)
private

Creates new form ImageFilePanel

Parameters
contextA string context name used to read/store last used settings.
fileChooserFiltersA list of filters to be used with the FileChooser.

Definition at line 65 of file ImageFilePanel.java.

Member Function Documentation

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.browseButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Automatically clear out the hash values if a new image was selected.

Definition at line 308 of file ImageFilePanel.java.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.changedUpdate ( DocumentEvent  e)

Definition at line 528 of file ImageFilePanel.java.

static synchronized ImageFilePanel org.sleuthkit.autopsy.casemodule.ImageFilePanel.createInstance ( String  context,
List< FileFilter >  fileChooserFilters 
)
static

Creates and returns an instance of a ImageFilePanel.

Parameters
contextA string context name used to read/store last used settings.
fileChooserFiltersA list of filters to be used with the FileChooser.
Returns
instance of the ImageFilePanel

Definition at line 106 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.casemodule.ImageFilePanel.getMd5TextFieldField(), org.sleuthkit.autopsy.casemodule.ImageFilePanel.getPathTextField(), org.sleuthkit.autopsy.casemodule.ImageFilePanel.getSha1TextField(), and org.sleuthkit.autopsy.casemodule.ImageFilePanel.getSha256TextField().

Referenced by org.sleuthkit.autopsy.casemodule.ImageDSProcessor.ImageDSProcessor().

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.createTimeZoneList ( )
private

Creates the drop down list for the time zones and defaults the selection to the local machine time zone.

Definition at line 86 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.coreutils.TimeZoneUtils.createTimeZoneList(), and org.sleuthkit.autopsy.coreutils.TimeZoneUtils.createTimeZoneString().

JFileChooser org.sleuthkit.autopsy.casemodule.ImageFilePanel.getChooser ( )
private
String org.sleuthkit.autopsy.casemodule.ImageFilePanel.getContentPaths ( )

Get the path of the user selected image.

Returns
the image path

Definition at line 391 of file ImageFilePanel.java.

Referenced by org.sleuthkit.autopsy.casemodule.ImageDSProcessor.readConfigSettings().

JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.getMd5TextFieldField ( )
private
boolean org.sleuthkit.autopsy.casemodule.ImageFilePanel.getNoFatOrphans ( )
JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.getPathTextField ( )
private
int org.sleuthkit.autopsy.casemodule.ImageFilePanel.getSectorSize ( )

Get the sector size.

Returns
0 if autodetect; otherwise the value selected.

Definition at line 409 of file ImageFilePanel.java.

Referenced by org.sleuthkit.autopsy.casemodule.ImageDSProcessor.readConfigSettings().

JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.getSha1TextField ( )
private
JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.getSha256TextField ( )
private
String org.sleuthkit.autopsy.casemodule.ImageFilePanel.getTimeZone ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.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 153 of file ImageFilePanel.java.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.insertUpdate ( DocumentEvent  e)

Definition at line 518 of file ImageFilePanel.java.

boolean org.sleuthkit.autopsy.casemodule.ImageFilePanel.isImagePathValid ( )
private
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.readSettings ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.removeUpdate ( DocumentEvent  e)

Definition at line 523 of file ImageFilePanel.java.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.reset ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.select ( )

Set the focus to the pathTextField.

Definition at line 554 of file ImageFilePanel.java.

Referenced by org.sleuthkit.autopsy.casemodule.ImageDSProcessor.getPanel().

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.setContentPath ( String  s)

Set the path of the image file.

Parameters
spath of the image file

Definition at line 400 of file ImageFilePanel.java.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.setHashValuesComponentsEnabled ( boolean  enabled)
private

Enable or disable all of the hash values components.

Parameters
enabledEnable components if true; otherwise disable.

Definition at line 372 of file ImageFilePanel.java.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.storeSettings ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.updateHelper ( )
private

Update functions are called by the pathTextField which has this set as it's DocumentEventListener. Each update function fires a property change to be caught by the parent panel. Additionally, the hash values will be enabled or disabled depending on the pathTextField input.

Definition at line 541 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessor.DSP_PANEL_EVENT.UPDATE_UI.

boolean org.sleuthkit.autopsy.casemodule.ImageFilePanel.validatePanel ( )

Should we enable the next button of the wizard?

Returns
true if a proper image has been selected, false otherwise

Definition at line 458 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.casemodule.Case.getCaseType(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), and org.sleuthkit.autopsy.coreutils.PathValidator.isValidForCaseType().

Referenced by org.sleuthkit.autopsy.casemodule.ImageDSProcessor.isPanelValid().

Member Data Documentation

javax.swing.JButton org.sleuthkit.autopsy.casemodule.ImageFilePanel.browseButton
private

Definition at line 348 of file ImageFilePanel.java.

final String org.sleuthkit.autopsy.casemodule.ImageFilePanel.contextName
private

Definition at line 54 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.errorLabel
private

Definition at line 349 of file ImageFilePanel.java.

JFileChooser org.sleuthkit.autopsy.casemodule.ImageFilePanel.fileChooser
private

Definition at line 53 of file ImageFilePanel.java.

final List<FileFilter> org.sleuthkit.autopsy.casemodule.ImageFilePanel.fileChooserFilters
private

Definition at line 55 of file ImageFilePanel.java.

final JFileChooserFactory org.sleuthkit.autopsy.casemodule.ImageFilePanel.fileChooserHelper = new JFileChooserFactory()
private

Definition at line 52 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.hashValuesLabel
private

Definition at line 350 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.hashValuesNoteLabel
private

Definition at line 351 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.md5HashLabel
private

Definition at line 352 of file ImageFilePanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.md5HashTextField
private

Definition at line 353 of file ImageFilePanel.java.

javax.swing.JCheckBox org.sleuthkit.autopsy.casemodule.ImageFilePanel.noFatOrphansCheckbox
private

Definition at line 354 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.pathLabel
private

Definition at line 355 of file ImageFilePanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.pathTextField
private

Definition at line 356 of file ImageFilePanel.java.

final String org.sleuthkit.autopsy.casemodule.ImageFilePanel.PROP_LASTIMAGE_PATH = "LBL_LastImage_PATH"
staticprivate

Definition at line 50 of file ImageFilePanel.java.

final String [] org.sleuthkit.autopsy.casemodule.ImageFilePanel.SECTOR_SIZE_CHOICES = {"Auto Detect", "512", "1024", "2048", "4096"}
staticprivate

Definition at line 51 of file ImageFilePanel.java.

javax.swing.JComboBox<String> org.sleuthkit.autopsy.casemodule.ImageFilePanel.sectorSizeComboBox
private

Definition at line 357 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.sectorSizeLabel
private

Definition at line 358 of file ImageFilePanel.java.

final long org.sleuthkit.autopsy.casemodule.ImageFilePanel.serialVersionUID = 1L
staticprivate

Definition at line 49 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.sha1HashLabel
private

Definition at line 359 of file ImageFilePanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.sha1HashTextField
private

Definition at line 360 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.sha256HashLabel
private

Definition at line 361 of file ImageFilePanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.sha256HashTextField
private

Definition at line 362 of file ImageFilePanel.java.

javax.swing.JComboBox<String> org.sleuthkit.autopsy.casemodule.ImageFilePanel.timeZoneComboBox
private

Definition at line 363 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.timeZoneLabel
private

Definition at line 364 of file ImageFilePanel.java.


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

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