Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
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.JTextArea | 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 |
Settings panel for the BingTranslator
Definition at line 41 of file BingTranslatorSettingsPanel.java.
org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel | ( | String | authenticationKey, |
String | code | ||
) |
Creates new form BingTranslatorSettingsPanel
Definition at line 52 of file BingTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.authenticationKeyField, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.populateComboBox(), and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.selectLanguageByCode().
|
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 126 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().
|
private |
Populate the target language combo box with available target languages
Definition at line 81 of file BingTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBox, and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.warningLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel().
|
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 110 of file BingTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBox.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel().
|
private |
Definition at line 255 of file BingTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBox.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 247 of file BingTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testTranslationSetup(), and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.warningLabel.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
private |
Attempts to translate the text specified in the Untranslated field using the settings currently specified but not necessarily saved
Definition at line 285 of file BingTranslatorSettingsPanel.java.
References org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.authenticationKeyField, org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testResultValueLabel, and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testUntranslatedTextField.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testButtonActionPerformed().
|
private |
Definition at line 264 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents(), and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.testTranslationSetup().
|
private |
Definition at line 265 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
staticprivate |
Definition at line 46 of file BingTranslatorSettingsPanel.java.
|
staticprivate |
Definition at line 45 of file BingTranslatorSettingsPanel.java.
|
private |
Definition at line 266 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 267 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
staticprivate |
Definition at line 43 of file BingTranslatorSettingsPanel.java.
|
private |
Definition at line 268 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
staticprivate |
Definition at line 44 of file BingTranslatorSettingsPanel.java.
|
private |
Definition at line 47 of file BingTranslatorSettingsPanel.java.
|
private |
Definition at line 269 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.populateComboBox(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.selectLanguageByCode(), and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.targetLanguageComboBoxSelected().
|
private |
Definition at line 270 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 271 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
private |
|
private |
|
private |
Definition at line 274 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents().
|
private |
Definition at line 275 of file BingTranslatorSettingsPanel.java.
Referenced by org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.initComponents(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.populateComboBox(), and org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.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.