19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.beans.PropertyChangeListener;
22 import org.openide.util.NbBundle;
29 final class KeywordSearchGlobalSettingsPanel
extends IngestModuleGlobalSettingsPanel implements OptionsPanel {
31 private GlobalListSettingsPanel listsPanel;
32 private KeywordSearchGlobalLanguageSettingsPanel languagesPanel;
33 private KeywordSearchGlobalSearchSettingsPanel generalPanel;
35 public KeywordSearchGlobalSettingsPanel() {
37 customizeComponents();
40 @NbBundle.Messages({
"KeywordSearchGlobalSettingsPanel.Title=Global Keyword Search Settings"})
41 private void customizeComponents() {
42 setName(Bundle.KeywordSearchGlobalSettingsPanel_Title());
43 listsPanel =
new GlobalListSettingsPanel();
44 languagesPanel =
new KeywordSearchGlobalLanguageSettingsPanel();
45 generalPanel =
new KeywordSearchGlobalSearchSettingsPanel();
46 tabbedPane.insertTab(NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.listTabTitle"), null,
47 listsPanel, NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.listLabToolTip"), 0);
48 tabbedPane.insertTab(NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.stringExtTitle"), null,
49 languagesPanel, NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.stringExtToolTip"), 1);
50 tabbedPane.insertTab(NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.genTabTitle"), null,
51 generalPanel, NbBundle.getMessage(
this.getClass(),
"KeywordSearchConfigurationPanel.customizeComponents.genTabToolTip"), 2);
55 public void addPropertyChangeListener(PropertyChangeListener l) {
56 listsPanel.addPropertyChangeListener(l);
57 languagesPanel.addPropertyChangeListener(l);
58 generalPanel.addPropertyChangeListener(l);
62 public void removePropertyChangeListener(PropertyChangeListener l) {
63 listsPanel.removePropertyChangeListener(l);
64 languagesPanel.removePropertyChangeListener(l);
65 generalPanel.removePropertyChangeListener(l);
74 private void initComponents() {
76 tabbedPane =
new javax.swing.JTabbedPane();
78 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
79 this.setLayout(layout);
80 layout.setHorizontalGroup(
81 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
82 .addGroup(layout.createSequentialGroup()
83 .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE)
86 layout.setVerticalGroup(
87 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88 .addGroup(layout.createSequentialGroup()
89 .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 543, Short.MAX_VALUE)
99 languagesPanel.load();
103 XmlKeywordSearchList.getCurrent().reload();
107 public void saveSettings() {
109 languagesPanel.store();
110 generalPanel.store();
114 public void store() {
118 public void cancel() {
119 XmlKeywordSearchList.getCurrent().reload();
126 private javax.swing.JTabbedPane tabbedPane;