KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > genericserver > ide > GSInstantiatingIterator


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.genericserver.ide;
21
22 import java.awt.Component JavaDoc;
23 import java.io.IOException JavaDoc;
24 import java.util.Set JavaDoc;
25 import javax.swing.JPanel JavaDoc;
26 import javax.swing.event.ChangeListener JavaDoc;
27 import org.openide.WizardDescriptor;
28 import org.openide.WizardDescriptor.Panel;
29 import org.openide.util.HelpCtx;
30
31 /**
32  *
33  * @author Martin Adamek
34  */

35 public class GSInstantiatingIterator implements WizardDescriptor.InstantiatingIterator {
36
37     private InstallPanel panel;
38
39     public void removeChangeListener(ChangeListener JavaDoc l) {
40     }
41
42     public void addChangeListener(ChangeListener JavaDoc 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 JavaDoc name() {
58         return "Generic Server AddInstanceIterator";
59     }
60
61     public Set JavaDoc instantiate() throws IOException JavaDoc {
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 JavaDoc 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 JavaDoc l) {
82         }
83
84         public void addChangeListener(ChangeListener JavaDoc l) {
85         }
86
87         public void storeSettings(Object JavaDoc settings) {
88         }
89
90         public void readSettings(Object JavaDoc 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 JavaDoc getComponent() {
102             return new JPanel JavaDoc();
103         }
104         
105     }
106 }
107
Popular Tags