Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits JPanel.
Classes | |
class | ComboBoxSelectionListener |
Public Member Functions | |
GoogleTranslatorSettingsPanel (String credentialsPath, String languageCode) | |
Private Member Functions | |
void | browseButtonActionPerformed (java.awt.event.ActionEvent evt) |
void | credentialsPathFieldActionPerformed (java.awt.event.ActionEvent evt) |
void | enableControls (boolean enabled) |
Translate | getTemporaryTranslationService () |
void | initComponents () |
void | populateTargetLanguageComboBox () |
void | selectLanguageByCode (String code) |
void | testButtonActionPerformed (java.awt.event.ActionEvent evt) |
Private Attributes | |
javax.swing.JButton | browseButton |
javax.swing.JLabel | credentialsLabel |
javax.swing.JTextField | credentialsPathField |
javax.swing.JScrollPane | instructionsScrollPane |
javax.swing.JTextArea | instructionsTextArea |
final ItemListener | listener = new ComboBoxSelectionListener() |
javax.swing.JLabel | resultLabel |
String | targetLanguageCode = "" |
javax.swing.JComboBox< org.sleuthkit.autopsy.texttranslation.translators.LanguageWrapper > | targetLanguageComboBox |
javax.swing.JLabel | targetLanguageLabel |
javax.swing.JButton | testButton |
javax.swing.JLabel | testResultValueLabel |
javax.swing.JTextField | testUntranslatedTextField |
javax.swing.JLabel | untranslatedLabel |
javax.swing.JLabel | warningLabel |
Static Private Attributes | |
static final String | DEFUALT_TEST_STRING = "traducción exitoso" |
static final String | JSON_EXTENSION = "json" |
static final Logger | logger = Logger.getLogger(GoogleTranslatorSettingsPanel.class.getName()) |
static final long | serialVersionUID = 1L |
Settings panel for the GoogleTranslator
Definition at line 45 of file GoogleTranslatorSettingsPanel.java.
org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.GoogleTranslatorSettingsPanel | ( | String | credentialsPath, |
String | languageCode | ||
) |
Creates new form GoogleTranslatorSettingsPanel
Definition at line 57 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathField, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox().
|
private |
Definition at line 326 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathField, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.JSON_EXTENSION, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox().
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 360 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
Helper method to enable/disable all controls which are dependent on valid credentials having been provided
enabled | true to enable the controls, false to disable them |
Definition at line 155 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.resultLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageComboBox, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButton, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testResultValueLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testUntranslatedTextField, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.untranslatedLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox().
|
private |
Private method to make a temporary translation service given the current settings with unsaved settings.
Definition at line 74 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathField, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.warningLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButtonActionPerformed().
|
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 186 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButton, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButtonActionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathField, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathFieldActionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.instructionsScrollPane, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.instructionsTextArea, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.resultLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageComboBox, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButton, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButtonActionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testResultValueLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testUntranslatedTextField, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.untranslatedLabel, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.warningLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.GoogleTranslatorSettingsPanel().
|
private |
Populate the target language selection combo box
Definition at line 115 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathField, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.enableControls(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.getTemporaryTranslationService(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.selectLanguageByCode(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageComboBox, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.warningLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButtonActionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.GoogleTranslatorSettingsPanel(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.ComboBoxSelectionListener.itemStateChanged().
|
private |
Given a language code select the corresponding language in the combo box if it is present
code | language code such as "en" for English |
Definition at line 170 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageComboBox.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox().
|
private |
Definition at line 345 of file GoogleTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.getTemporaryTranslationService(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testResultValueLabel, org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testUntranslatedTextField, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.warningLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 365 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 366 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 367 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButtonActionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.getTemporaryTranslationService(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.GoogleTranslatorSettingsPanel(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox().
|
staticprivate |
Definition at line 49 of file GoogleTranslatorSettingsPanel.java.
|
private |
Definition at line 368 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 369 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
staticprivate |
Definition at line 48 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButtonActionPerformed().
|
private |
Definition at line 51 of file GoogleTranslatorSettingsPanel.java.
|
staticprivate |
Definition at line 47 of file GoogleTranslatorSettingsPanel.java.
|
private |
|
staticprivate |
Definition at line 50 of file GoogleTranslatorSettingsPanel.java.
|
private |
Definition at line 52 of file GoogleTranslatorSettingsPanel.java.
|
private |
Definition at line 371 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.enableControls(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.ComboBoxSelectionListener.itemStateChanged(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.selectLanguageByCode().
|
private |
Definition at line 372 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents().
|
private |
|
private |
Definition at line 374 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.enableControls(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButtonActionPerformed().
|
private |
Definition at line 375 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.enableControls(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButtonActionPerformed().
|
private |
|
private |
Definition at line 377 of file GoogleTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.getTemporaryTranslationService(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.initComponents(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox(), and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButtonActionPerformed().
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.