KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > ui > wizard > WizardNewWSDLStep


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-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.wsdl.ui.wizard;
21
22 import java.awt.Component JavaDoc;
23 import java.awt.Dimension JavaDoc;
24 import java.util.ArrayList JavaDoc;
25 import java.util.Iterator JavaDoc;
26 import java.util.List JavaDoc;
27
28 import javax.swing.event.ChangeEvent JavaDoc;
29 import javax.swing.event.ChangeListener JavaDoc;
30 import javax.swing.event.DocumentEvent JavaDoc;
31 import javax.swing.event.DocumentListener JavaDoc;
32 import javax.swing.text.Document JavaDoc;
33
34 import org.netbeans.api.project.Project;
35 import org.netbeans.modules.xml.wsdl.ui.view.OperationType;
36 import org.netbeans.modules.xml.wsdl.ui.view.PartAndElementOrTypeTableModel;
37 import org.netbeans.modules.xml.wsdl.ui.view.PortTypeConfigurationPanel;
38 import org.openide.WizardDescriptor;
39 import org.openide.loaders.TemplateWizard;
40 import org.openide.util.HelpCtx;
41 import org.openide.util.NbBundle;
42
43 /**
44  *
45  * @author radval
46  */

47 public class WizardNewWSDLStep implements WizardDescriptor.FinishablePanel {
48     private WizardDescriptor.Panel mPanel;
49
50     
51     public WizardNewWSDLStep(WizardDescriptor.Panel panel) {
52         this.mPanel = panel;
53     }
54     
55     public boolean isFinishPanel() {
56         return true;
57     }
58
59     public Component JavaDoc getComponent() {
60         return mPanel.getComponent();
61     }
62
63     public HelpCtx getHelp() {
64         return mPanel.getHelp();
65     }
66
67     public void readSettings(Object JavaDoc settings) {
68         mPanel.readSettings(settings);
69     }
70
71     public void storeSettings(Object JavaDoc settings) {
72         //hack calling mPanel.storeSettings null out the title
73
String JavaDoc title = (String JavaDoc) ((WizardDescriptor)settings).getProperty ("NewFileWizard_Title"); // NOI18N
74
mPanel.storeSettings(settings);
75         ((WizardDescriptor)settings).putProperty ("NewFileWizard_Title", title); // NOI18N
76
}
77
78     public boolean isValid() {
79         return mPanel.isValid();
80     }
81
82     public void addChangeListener(ChangeListener JavaDoc l) {
83         mPanel.addChangeListener(l);
84     }
85
86     public void removeChangeListener(ChangeListener JavaDoc l) {
87         mPanel.removeChangeListener(l);
88     }
89     
90 }
91
Popular Tags