Autopsy  4.1
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)
 
void createTimeZoneList ()
 
String getContentPaths ()
 
boolean getNoFatOrphans ()
 
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 initComponents ()
 
void postInit ()
 
void warnIfPathIsInvalid (String path)
 

Private Attributes

javax.swing.JButton browseButton
 
final String contextName
 
javax.swing.JLabel descLabel
 
javax.swing.JLabel errorLabel
 
final JFileChooser fc = new JFileChooser()
 
javax.swing.JCheckBox noFatOrphansCheckbox
 
javax.swing.JLabel pathLabel
 
javax.swing.JTextField pathTextField
 
final String PROP_LASTIMAGE_PATH = "LBL_LastImage_PATH"
 
javax.swing.JComboBox< String > timeZoneComboBox
 
javax.swing.JLabel timeZoneLabel
 

Static Private Attributes

static final Logger logger = Logger.getLogger(ImageFilePanel.class.getName())
 

Detailed Description

ImageTypePanel for adding an image file such as .img, .E0x, .00x, etc.

Definition at line 44 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 61 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.casemodule.ImageFilePanel.errorLabel, and org.sleuthkit.autopsy.casemodule.ImageFilePanel.initComponents().

Referenced by org.sleuthkit.autopsy.casemodule.ImageFilePanel.createInstance().

Member Function Documentation

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.browseButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.changedUpdate ( DocumentEvent  e)
static synchronized ImageFilePanel org.sleuthkit.autopsy.casemodule.ImageFilePanel.createInstance ( String  context,
List< FileFilter >  fileChooserFilters 
)
static
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.createTimeZoneList ( )

Creates the drop down list for the time zones and then makes the local machine time zone to be selected.

Definition at line 313 of file ImageFilePanel.java.

Referenced by org.sleuthkit.autopsy.casemodule.ImageFilePanel.createInstance().

String org.sleuthkit.autopsy.casemodule.ImageFilePanel.getContentPaths ( )
boolean org.sleuthkit.autopsy.casemodule.ImageFilePanel.getNoFatOrphans ( )
String org.sleuthkit.autopsy.casemodule.ImageFilePanel.getTimeZone ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.initComponents ( )
private
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.insertUpdate ( DocumentEvent  e)

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.

Parameters
ethe event, which is ignored

Definition at line 353 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.MessageType.ERROR, org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Notify.show(), and org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessor.DSP_PANEL_EVENT.UPDATE_UI.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.postInit ( )
private
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.readSettings ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.removeUpdate ( DocumentEvent  e)
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.reset ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.select ( )

Set the focus to the pathTextField.

Definition at line 393 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.casemodule.ImageFilePanel.pathTextField.

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 239 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.casemodule.ImageFilePanel.pathTextField.

void org.sleuthkit.autopsy.casemodule.ImageFilePanel.storeSettings ( )
boolean org.sleuthkit.autopsy.casemodule.ImageFilePanel.validatePanel ( )
void org.sleuthkit.autopsy.casemodule.ImageFilePanel.warnIfPathIsInvalid ( String  path)
private

Validates path to selected data source and displays warning if it is invalid.

Parameters
pathAbsolute path to the selected data source

Definition at line 285 of file ImageFilePanel.java.

References org.sleuthkit.autopsy.casemodule.ImageFilePanel.errorLabel, org.sleuthkit.autopsy.casemodule.Case.getCaseType(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), and org.sleuthkit.autopsy.coreutils.PathValidator.isValid().

Referenced by org.sleuthkit.autopsy.casemodule.ImageFilePanel.validatePanel().

Member Data Documentation

javax.swing.JButton org.sleuthkit.autopsy.casemodule.ImageFilePanel.browseButton
private
final String org.sleuthkit.autopsy.casemodule.ImageFilePanel.contextName
private

Definition at line 51 of file ImageFilePanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.descLabel
private
javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.errorLabel
private
final JFileChooser org.sleuthkit.autopsy.casemodule.ImageFilePanel.fc = new JFileChooser()
private

Definition at line 48 of file ImageFilePanel.java.

final Logger org.sleuthkit.autopsy.casemodule.ImageFilePanel.logger = Logger.getLogger(ImageFilePanel.class.getName())
staticprivate

Definition at line 47 of file ImageFilePanel.java.

javax.swing.JCheckBox org.sleuthkit.autopsy.casemodule.ImageFilePanel.noFatOrphansCheckbox
private
javax.swing.JLabel org.sleuthkit.autopsy.casemodule.ImageFilePanel.pathLabel
private
javax.swing.JTextField org.sleuthkit.autopsy.casemodule.ImageFilePanel.pathTextField
private
final String org.sleuthkit.autopsy.casemodule.ImageFilePanel.PROP_LASTIMAGE_PATH = "LBL_LastImage_PATH"
private

Definition at line 46 of file ImageFilePanel.java.

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

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

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