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.texttranslation.translators.BingTranslatorSettingsPanel Class Reference

Inherits JPanel.

Public Member Functions

 BingTranslatorSettingsPanel (String authenticationKey, String code)
 

Private Member Functions

void initComponents ()
 
void populateComboBox ()
 
void selectLanguageByCode (String code)
 
void targetLanguageComboBoxSelected (java.awt.event.ItemEvent evt)
 
void testButtonActionPerformed (java.awt.event.ActionEvent evt)
 
boolean testTranslationSetup ()
 

Private Attributes

javax.swing.JTextField authenticationKeyField
 
javax.swing.JLabel authenticationKeyLabel
 
javax.swing.JScrollPane instructionsScrollPane
 
javax.swing.JTextPane instructionsTextArea
 
javax.swing.JLabel resultLabel
 
String targetLanguageCode = ""
 
javax.swing.JComboBox< 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 GET_TARGET_LANGUAGES_URL = "https://api.cognitive.microsofttranslator.com/languages?api-version=3.0&scope=translation"
 
static final Logger logger = Logger.getLogger(BingTranslatorSettingsPanel.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

Settings panel for the BingTranslator

Definition at line 45 of file BingTranslatorSettingsPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel ( String  authenticationKey,
String  code 
)

Member Function Documentation

void org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.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 149 of file BingTranslatorSettingsPanel.java.

References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.authenticationKeyField, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.authenticationKeyLabel, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.instructionsScrollPane, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.instructionsTextArea, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.resultLabel, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBox, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBoxSelected(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageLabel, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testButton, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testButtonActionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testResultValueLabel, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testUntranslatedTextField, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.untranslatedLabel, and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.warningLabel.

Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel().

void org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.populateComboBox ( )
private
void org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.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 133 of file BingTranslatorSettingsPanel.java.

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

Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel().

void org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBoxSelected ( java.awt.event.ItemEvent  evt)
private
void org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
boolean org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testTranslationSetup ( )
private

Member Data Documentation

javax.swing.JTextField org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.authenticationKeyField
private
javax.swing.JLabel org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.authenticationKeyLabel
private
final String org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.DEFUALT_TEST_STRING = "traducción exitoso"
staticprivate

Definition at line 50 of file BingTranslatorSettingsPanel.java.

final String org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.GET_TARGET_LANGUAGES_URL = "https://api.cognitive.microsofttranslator.com/languages?api-version=3.0&scope=translation"
staticprivate

Definition at line 49 of file BingTranslatorSettingsPanel.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.instructionsScrollPane
private
javax.swing.JTextPane org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.instructionsTextArea
private
final Logger org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.logger = Logger.getLogger(BingTranslatorSettingsPanel.class.getName())
staticprivate

Definition at line 47 of file BingTranslatorSettingsPanel.java.

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

Definition at line 48 of file BingTranslatorSettingsPanel.java.

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

Definition at line 51 of file BingTranslatorSettingsPanel.java.

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

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

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