19 package org.sleuthkit.autopsy.geolocation;
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;
29 @OptionsPanelController.TopLevelRegistration(
30 categoryName =
"#OptionsCategory_Name_Geolocation",
31 iconBase =
"org/sleuthkit/autopsy/images/blueGeo32.png",
32 keywords =
"#OptionsCategory_Keywords_Geolocation",
33 keywordsCategory =
"Geolcoation",
41 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
43 private GeolocationSettingsPanel
panel;
50 GeolocationSettingsPanel getPanel() {
52 panel =
new GeolocationSettingsPanel();
53 panel.addPropertyChangeListener(
new PropertyChangeListener() {
55 public void propertyChange(PropertyChangeEvent evt) {
56 if (evt.getPropertyName().equals(OptionsPanelController.PROP_CHANGED)) {
100 pcs.addPropertyChangeListener(listener);
105 pcs.removePropertyChangeListener(listener);
111 void updateChanged() {
114 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
116 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
121 getPanel().cancelChanges();
GeolocationSettingsPanel panel
void removePropertyChangeListener(PropertyChangeListener listener)
final PropertyChangeSupport pcs
JComponent getComponent(Lookup masterLookup)
void addPropertyChangeListener(PropertyChangeListener listener)