19 package org.sleuthkit.autopsy.keywordsearch;
21 import org.openide.util.NbBundle;
28 final class KeywordSearchGlobalSettingsPanel
extends IngestModuleGlobalSettingsPanel implements OptionsPanel {
30 private GlobalListSettingsPanel listsPanel;
31 private KeywordSearchGlobalLanguageSettingsPanel languagesPanel;
32 private KeywordSearchGlobalSearchSettingsPanel generalPanel;
34 public KeywordSearchGlobalSettingsPanel() {
36 customizeComponents();
39 @NbBundle.Messages({
"KeywordSearchGlobalSettingsPanel.Title=Global Keyword Search Settings"})
40 private void customizeComponents() {
41 setName(Bundle.KeywordSearchGlobalSettingsPanel_Title());
42 listsPanel =
new GlobalListSettingsPanel();
43 languagesPanel =
new KeywordSearchGlobalLanguageSettingsPanel();
44 generalPanel =
new KeywordSearchGlobalSearchSettingsPanel();
45 tabbedPane.insertTab(NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.listTabTitle"), null,
46 listsPanel, NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.listLabToolTip"), 0);
47 tabbedPane.insertTab(NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.stringExtTitle"), null,
48 languagesPanel, NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.stringExtToolTip"), 1);
49 tabbedPane.insertTab(NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.genTabTitle"), null,
50 generalPanel, NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.genTabToolTip"), 2);
59 private void initComponents() {
61 tabbedPane =
new javax.swing.JTabbedPane();
63 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
64 this.setLayout(layout);
65 layout.setHorizontalGroup(
66 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
67 .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 670, Short.MAX_VALUE)
69 layout.setVerticalGroup(
70 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
71 .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
80 languagesPanel.load();
84 XmlKeywordSearchList.getCurrent().reload();
88 public void saveSettings() {
90 languagesPanel.store();
99 public void cancel() {
100 XmlKeywordSearchList.getCurrent().reload();
107 private javax.swing.JTabbedPane tabbedPane;