19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.beans.PropertyChangeEvent;
22 import java.beans.PropertyChangeListener;
23 import java.beans.PropertyChangeSupport;
24 import javax.swing.JComponent;
25 import org.netbeans.spi.options.OptionsPanelController;
26 import org.openide.util.HelpCtx;
27 import org.openide.util.Lookup;
30 @OptionsPanelController.TopLevelRegistration(
31 categoryName =
"#OptionsCategory_Name_KeywordSearchOptions",
32 iconBase =
"org/sleuthkit/autopsy/keywordsearch/options-icon.png",
34 keywords =
"#OptionsCategory_Keywords_KeywordSearchOptions",
35 keywordsCategory =
"KeywordSearchOptions")
38 private KeywordSearchGlobalSettingsPanel
panel;
39 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
103 pcs.addPropertyChangeListener(l);
108 pcs.removePropertyChangeListener(l);
111 private KeywordSearchGlobalSettingsPanel
getPanel() {
113 panel =
new KeywordSearchGlobalSettingsPanel();
114 panel.addPropertyChangeListener(
new PropertyChangeListener() {
116 public void propertyChange(PropertyChangeEvent evt) {
117 if (evt.getPropertyName().equals(OptionsPanelController.PROP_CHANGED)) {
129 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
131 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
KeywordSearchGlobalSettingsPanel getPanel()
void addPropertyChangeListener(PropertyChangeListener l)
static final Logger logger
final PropertyChangeSupport pcs
KeywordSearchGlobalSettingsPanel panel
void removePropertyChangeListener(PropertyChangeListener l)
synchronized static Logger getLogger(String name)
JComponent getComponent(Lookup masterLookup)