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_Multi_User_Settings",
33 iconBase =
"org/sleuthkit/autopsy/images/User-Group-icon-green32.png",
35 keywords =
"#OptionsCategory_Keywords_Multi_User_Options",
36 keywordsCategory =
"Multi-User")
40 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
82 if (pcs.getPropertyChangeListeners().length == 0) {
83 pcs.addPropertyChangeListener(l);
110 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
111 }
catch (Exception e) {
112 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
113 MessageNotifyUtil.Notify.show(
114 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
115 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
116 MessageNotifyUtil.MessageType.ERROR);
121 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
122 }
catch (Exception e) {
123 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
124 MessageNotifyUtil.Notify.show(
125 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
126 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
127 MessageNotifyUtil.MessageType.ERROR);
JComponent getComponent(Lookup masterLookup)
final PropertyChangeSupport pcs
MultiUserSettingsPanel panel
static final Logger logger
MultiUserSettingsPanel getPanel()
void removePropertyChangeListener(PropertyChangeListener l)
synchronized static Logger getLogger(String name)
void addPropertyChangeListener(PropertyChangeListener l)