Autopsy  4.19.3
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.datamodel.persons.AddEditPersonDialog Class Reference

Inherits JDialog.

Public Member Functions

 AddEditPersonDialog (java.awt.Frame parent, Collection< Person > currentPersons)
 
 AddEditPersonDialog (java.awt.Frame parent, Collection< Person > currentPersons, Person initialPerson)
 
String getValue ()
 
boolean isChanged ()
 

Private Member Functions

void cancelButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void initComponents ()
 
void okButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void onNameUpdate (String newNameValue)
 

Private Attributes

boolean changed = false
 
final Person initialPerson
 
javax.swing.JTextField inputTextField
 
javax.swing.JButton okButton
 
final Set< String > personNamesSanitized
 
javax.swing.JLabel validationLabel
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Dialog for adding or editing a person.

Definition at line 33 of file AddEditPersonDialog.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.AddEditPersonDialog ( java.awt.Frame  parent,
Collection< Person >  currentPersons 
)

Main constructor.

Parameters
parentThe parent frame for this dialog.
currentPersonsThe current set of persons in the case.

Definition at line 49 of file AddEditPersonDialog.java.

org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.AddEditPersonDialog ( java.awt.Frame  parent,
Collection< Person >  currentPersons,
Person  initialPerson 
)

Main constructor.

Parameters
parentThe parent frame for this dialog.
currentPersonsThe current set of persons (used for determining if name is unique).
initialPersonIf adding a new person, this will be a null value. Otherwise, if editing, this will be the person being edited.

Definition at line 66 of file AddEditPersonDialog.java.

References org.sleuthkit.autopsy.datamodel.persons.PersonNameValidator.getSanitizedPersonNames(), org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.initComponents(), org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.initialPerson, org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.inputTextField, org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.onNameUpdate(), and org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.validationLabel.

Member Function Documentation

void org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.cancelButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
String org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.getValue ( )
void org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.initComponents ( )
private
boolean org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.isChanged ( )
void org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.okButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.onNameUpdate ( String  newNameValue)
private

Member Data Documentation

boolean org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.changed = false
private
final Person org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.initialPerson
private
javax.swing.JTextField org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.inputTextField
private
javax.swing.JButton org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.okButton
private
final Set<String> org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.personNamesSanitized
private
final long org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.serialVersionUID = 1L
staticprivate

Definition at line 35 of file AddEditPersonDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.validationLabel
private

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

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.