19 package org.sleuthkit.autopsy.casemodule;
21 import java.awt.Component;
22 import java.beans.PropertyChangeEvent;
23 import java.beans.PropertyChangeListener;
24 import javax.swing.event.ChangeListener;
25 import org.openide.WizardDescriptor;
26 import org.openide.util.ChangeSupport;
27 import org.openide.util.HelpCtx;
28 import org.openide.util.NbBundle.Messages;
36 @SuppressWarnings(
"PMD.SingularField")
37 @Messages(
"AddImageWizardSelectHostPanel_title=Select Host To Add The Data Source To")
38 final class AddImageWizardSelectHostPanel extends ShortcutWizardDescriptorPanel implements PropertyChangeListener {
40 private final AddImageWizardSelectHostVisual component =
new AddImageWizardSelectHostVisual();
41 private final ChangeSupport changeSupport =
new ChangeSupport(
this);
43 AddImageWizardSelectHostPanel() {
44 component.addListener(
this);
48 public Component getComponent() {
53 public HelpCtx getHelp() {
54 return HelpCtx.DEFAULT_HELP;
58 public void readSettings(WizardDescriptor data) {
67 Host getSelectedHost() {
68 return component.getSelectedHost();
72 public void storeSettings(WizardDescriptor data) {
76 public boolean isValid() {
77 return component.hasValidData();
81 public void addChangeListener(ChangeListener cl) {
82 changeSupport.addChangeListener(cl);
86 public void removeChangeListener(ChangeListener cl) {
87 changeSupport.removeChangeListener(cl);
91 public void propertyChange(PropertyChangeEvent evt) {
92 changeSupport.fireChange();