19 package org.sleuthkit.autopsy.directorytree;
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;
32 @OptionsPanelController.TopLevelRegistration(
33 categoryName =
"#OptionsCategory_Name_ExternalViewer",
34 iconBase =
"org/sleuthkit/autopsy/directorytree/external-viewer-rules-32x32.png",
35 keywords =
"#OptionsCategory_Keywords_ExternalViewer",
36 keywordsCategory =
"ExternalViewer",
41 private ExternalViewerGlobalSettingsPanel
panel;
42 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
85 pcs.addPropertyChangeListener(l);
90 pcs.removePropertyChangeListener(l);
93 private ExternalViewerGlobalSettingsPanel
getPanel() {
95 panel =
new ExternalViewerGlobalSettingsPanel();
96 panel.addPropertyChangeListener((PropertyChangeEvent evt) -> {
97 if (evt.getPropertyName().equals(OptionsPanelController.PROP_CHANGED)) {
108 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
110 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
ExternalViewerGlobalSettingsPanel getPanel()
void removePropertyChangeListener(PropertyChangeListener l)
void addPropertyChangeListener(PropertyChangeListener l)
JComponent getComponent(Lookup lkp)
final PropertyChangeSupport pcs
ExternalViewerGlobalSettingsPanel panel