1 19 20 package org.netbeans.modules.autoupdate; 21 22 import java.awt.Component ; 23 import javax.swing.event.ChangeListener ; 24 import org.openide.WizardDescriptor; 25 import org.openide.util.HelpCtx; 26 27 33 public final class SetupWizardPanel implements WizardDescriptor.FinishablePanel { 34 35 36 private SetupPanel panelUI; 37 38 39 public Component getComponent() { 40 return getPanelUI(); 41 } 42 43 44 public HelpCtx getHelp () { 45 return new HelpCtx("setupwizard.autoupdate"); } 47 48 50 public void readSettings (Object settings) { 51 if (settings instanceof WizardDescriptor) { 52 getPanelUI().initFromSettings((WizardDescriptor)settings); 53 } 54 } 55 56 58 public void storeSettings (Object settings) { 59 } 60 61 64 public boolean isValid () { 65 return true; 66 } 67 68 71 public void addChangeListener (ChangeListener l) { 72 } 73 74 77 public void removeChangeListener (ChangeListener l) { 78 } 79 80 83 private SetupPanel getPanelUI () { 84 if (panelUI == null) { 85 panelUI = new SetupPanel(); 86 } 87 return panelUI; 88 } 89 90 public boolean isFinishPanel() { 91 return true; 92 } 93 94 } 95 | Popular Tags |