5 package org.sleuthkit.autopsy.modules.fileextmismatch;
7 import java.beans.PropertyChangeEvent;
8 import java.beans.PropertyChangeListener;
9 import java.beans.PropertyChangeSupport;
10 import javax.swing.JComponent;
11 import org.netbeans.spi.options.OptionsPanelController;
12 import org.openide.util.HelpCtx;
13 import org.openide.util.Lookup;
16 @OptionsPanelController.TopLevelRegistration(
17 categoryName =
"#OptionsCategory_Name_FileExtMismatchOptions",
18 iconBase =
"org/sleuthkit/autopsy/modules/fileextmismatch/options-icon.png",
20 keywords =
"#OptionsCategory_FileExtMismatch",
21 keywordsCategory =
"KeywordSearchOptions")
24 private FileExtMismatchSettingsPanel
panel;
25 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
89 pcs.addPropertyChangeListener(l);
94 pcs.removePropertyChangeListener(l);
97 private FileExtMismatchSettingsPanel
getPanel() {
99 panel =
new FileExtMismatchSettingsPanel();
100 panel.addPropertyChangeListener(
new PropertyChangeListener() {
102 public void propertyChange(PropertyChangeEvent evt) {
103 if (evt.getPropertyName().equals(OptionsPanelController.PROP_CHANGED)) {
116 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
119 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
void addPropertyChangeListener(PropertyChangeListener l)
FileExtMismatchSettingsPanel getPanel()
static final Logger logger
final PropertyChangeSupport pcs
FileExtMismatchSettingsPanel panel
synchronized static Logger getLogger(String name)
JComponent getComponent(Lookup masterLookup)
void removePropertyChangeListener(PropertyChangeListener l)