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

Inherits JPanel.

Classes

class  ComboBoxSelectionListener
 

Public Member Functions

 GoogleTranslatorSettingsPanel (String credentialsPath, String languageCode)
 

Private Member Functions

void browseButtonActionPerformed (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.JTextField credentialsPathField
 
javax.swing.JScrollPane instructionsScrollPane
 
javax.swing.JTextPane instructionsTextArea
 
final ItemListener listener = new ComboBoxSelectionListener()
 
javax.swing.JLabel resultLabel
 
String targetLanguageCode = ""
 
javax.swing.JComboBox< org.sleuthkit.autopsy.texttranslation.translators.LanguageWrapper > targetLanguageComboBox
 
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
 

Detailed Description

Settings panel for the GoogleTranslator

Definition at line 49 of file GoogleTranslatorSettingsPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.GoogleTranslatorSettingsPanel ( String  credentialsPath,
String  languageCode 
)

Member Function Documentation

void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.enableControls ( boolean  enabled)
private
Translate org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.getTemporaryTranslationService ( )
private
void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.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 207 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.credentialsPathField, 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.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().

void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox ( )
private
void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.selectLanguageByCode ( String  code)
private

Given a language code select the corresponding language in the combo box if it is present

Parameters
codelanguage code such as "en" for English

Definition at line 191 of file GoogleTranslatorSettingsPanel.java.

References org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageComboBox.

Referenced by org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.populateTargetLanguageComboBox().

void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Member Data Documentation

javax.swing.JButton org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.browseButton
private
javax.swing.JTextField org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.credentialsPathField
private
final String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.DEFUALT_TEST_STRING = "traducción exitoso"
staticprivate

Definition at line 53 of file GoogleTranslatorSettingsPanel.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.instructionsScrollPane
private
javax.swing.JTextPane org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.instructionsTextArea
private
final String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.JSON_EXTENSION = "json"
staticprivate
final ItemListener org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.listener = new ComboBoxSelectionListener()
private

Definition at line 55 of file GoogleTranslatorSettingsPanel.java.

final Logger org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.logger = Logger.getLogger(GoogleTranslatorSettingsPanel.class.getName())
staticprivate

Definition at line 51 of file GoogleTranslatorSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.resultLabel
private
final long org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.serialVersionUID = 1L
staticprivate

Definition at line 54 of file GoogleTranslatorSettingsPanel.java.

String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageCode = ""
private

Definition at line 56 of file GoogleTranslatorSettingsPanel.java.

javax.swing.JComboBox<org.sleuthkit.autopsy.texttranslation.translators.LanguageWrapper> org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.targetLanguageComboBox
private
javax.swing.JButton org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testButton
private
javax.swing.JLabel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testResultValueLabel
private
javax.swing.JTextField org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.testUntranslatedTextField
private
javax.swing.JLabel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.untranslatedLabel
private
javax.swing.JLabel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.warningLabel
private

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

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