20 package org.sleuthkit.autopsy.modules.hashdatabase;
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;
28 import org.openide.util.NbBundle;
30 import java.util.logging.Level;
33 @OptionsPanelController.TopLevelRegistration(
34 categoryName =
"#OptionsCategory_Name_HashDatabase",
35 iconBase =
"org/sleuthkit/autopsy/modules/hashdatabase/options_icon.png",
37 keywords =
"#OptionsCategory_Keywords_HashDatabase",
38 keywordsCategory =
"HashDatabase",
45 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
87 pcs.addPropertyChangeListener(l);
92 pcs.removePropertyChangeListener(l);
107 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
109 catch (Exception e) {
110 logger.log(Level.SEVERE,
"HashDatabaseOptionsPanelController listener threw exception", e);
111 MessageNotifyUtil.Notify.show(
112 NbBundle.getMessage(
this.getClass(),
"HashDatabaseOptionsPanelController.moduleErr"),
113 NbBundle.getMessage(
this.getClass(),
"HashDatabaseOptionsPanelController.moduleErrMsg"),
114 MessageNotifyUtil.MessageType.ERROR);
119 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
121 catch (Exception e) {
122 logger.log(Level.SEVERE,
"HashDatabaseOptionsPanelController listener threw exception", e);
123 MessageNotifyUtil.Notify.show(
124 NbBundle.getMessage(
this.getClass(),
"HashDatabaseOptionsPanelController.moduleErr"),
125 NbBundle.getMessage(
this.getClass(),
"HashDatabaseOptionsPanelController.moduleErrMsg"),
126 MessageNotifyUtil.MessageType.ERROR);
void addPropertyChangeListener(PropertyChangeListener l)
HashLookupSettingsPanel getPanel()
JComponent getComponent(Lookup masterLookup)
static final Logger logger
final PropertyChangeSupport pcs
HashLookupSettingsPanel panel
static Logger getLogger(String name)
void removePropertyChangeListener(PropertyChangeListener l)