1 19 20 package org.netbeans.modules.j2ee.genericserver.ide; 21 22 import java.awt.Component ; 23 import java.io.IOException ; 24 import java.util.Set ; 25 import javax.swing.JPanel ; 26 import javax.swing.event.ChangeListener ; 27 import org.openide.WizardDescriptor; 28 import org.openide.WizardDescriptor.Panel; 29 import org.openide.util.HelpCtx; 30 31 35 public class GSInstantiatingIterator implements WizardDescriptor.InstantiatingIterator { 36 37 private InstallPanel panel; 38 39 public void removeChangeListener(ChangeListener l) { 40 } 41 42 public void addChangeListener(ChangeListener l) { 43 } 44 45 public void uninitialize(WizardDescriptor wizard) { 46 } 47 48 public void initialize(WizardDescriptor wizard) { 49 } 50 51 public void previousPanel() { 52 } 53 54 public void nextPanel() { 55 } 56 57 public String name() { 58 return "Generic Server AddInstanceIterator"; 59 } 60 61 public Set instantiate() throws IOException { 62 return null; 63 } 64 65 public boolean hasPrevious() { 66 return false; 67 } 68 69 public boolean hasNext() { 70 return false; 71 } 72 73 public Panel current() { 74 if (panel == null) { 75 panel = new InstallPanel(); 76 } 77 return panel; 78 } 79 80 private static class InstallPanel implements WizardDescriptor.Panel { 81 public void removeChangeListener(ChangeListener l) { 82 } 83 84 public void addChangeListener(ChangeListener l) { 85 } 86 87 public void storeSettings(Object settings) { 88 } 89 90 public void readSettings(Object settings) { 91 } 92 93 public boolean isValid() { 94 return true; 95 } 96 97 public HelpCtx getHelp() { 98 return HelpCtx.DEFAULT_HELP; 99 } 100 101 public Component getComponent() { 102 return new JPanel (); 103 } 104 105 } 106 } 107 | Popular Tags |