19 package org.sleuthkit.autopsy.corecomponents;
21 import java.beans.PropertyChangeListener;
22 import java.beans.PropertyChangeSupport;
23 import javax.swing.JComponent;
24 import org.netbeans.spi.options.OptionsPanelController;
25 import org.openide.util.HelpCtx;
26 import org.openide.util.Lookup;
27 import org.openide.util.NbBundle;
29 import java.util.logging.Level;
32 @OptionsPanelController.TopLevelRegistration(categoryName =
"#OptionsCategory_Name_General",
33 iconBase =
"org/sleuthkit/autopsy/corecomponents/checkbox.png",
35 keywords =
"#OptionsCategory_Keywords_General",
36 keywordsCategory =
"General")
39 private AutopsyOptionsPanel
panel;
40 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
82 pcs.addPropertyChangeListener(l);
87 pcs.removePropertyChangeListener(l);
92 panel =
new AutopsyOptionsPanel(
this);
102 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
103 }
catch (Exception e) {
104 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
105 MessageNotifyUtil.Notify.show(
106 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
107 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
108 MessageNotifyUtil.MessageType.ERROR);
113 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
114 }
catch (Exception e) {
115 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
116 MessageNotifyUtil.Notify.show(
117 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
118 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
119 MessageNotifyUtil.MessageType.ERROR);
JComponent getComponent(Lookup masterLookup)
void removePropertyChangeListener(PropertyChangeListener l)
AutopsyOptionsPanel getPanel()
void addPropertyChangeListener(PropertyChangeListener l)
static final Logger logger
final PropertyChangeSupport pcs
static Logger getLogger(String name)
AutopsyOptionsPanel panel