KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > design > view > actions > AddOperationFromSchemaPanel


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.websvc.design.view.actions;
21
22 import java.io.File JavaDoc;
23 import java.net.URL JavaDoc;
24 import java.util.List JavaDoc;
25 import org.openide.util.NbBundle;
26
27 /**
28  *
29  * @author mkuchtiak
30  */

31 public class AddOperationFromSchemaPanel extends javax.swing.JPanel JavaDoc {
32     private File JavaDoc wsdlFile;
33     private List JavaDoc<URL JavaDoc> schemaFiles;
34     private String JavaDoc parameterType, returnType, faultType;
35     
36     /** Creates new form NewJPanel */
37     public AddOperationFromSchemaPanel(File JavaDoc wsdlFile) {
38         this();
39         this.wsdlFile=wsdlFile;
40         jTextField2.setText(NbBundle.getMessage(AddOperationFromSchemaPanel.class, "TXT_DefaultSchmas", wsdlFile.getName()));
41         jTextField2.setEditable(false);
42         browseButton.setEnabled(false);
43     }
44     
45      /** Creates new form NewJPanel */
46     public AddOperationFromSchemaPanel() {
47         initComponents();
48         jTextField1.setText(NbBundle.getMessage(AddOperationFromSchemaPanel.class, "TXT_DefaultOperationName"));
49     }
50     
51     public File JavaDoc getWsdlFile() {
52         return wsdlFile;
53     }
54     
55     public List JavaDoc<URL JavaDoc> getSchemaFiles() {
56         return schemaFiles;
57     }
58     
59     public String JavaDoc getParameterType() {
60         return parameterType;
61     }
62     
63     public String JavaDoc getReturnType() {
64         return returnType;
65     }
66     
67     public String JavaDoc getFaultType() {
68         return faultType;
69     }
70     
71
72     
73     /** This method is called from within the constructor to
74      * initialize the form.
75      * WARNING: Do NOT modify this code. The content of this method is
76      * always regenerated by the Form Editor.
77      */

78     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
79
private void initComponents() {
80
81         jLabel1 = new javax.swing.JLabel JavaDoc();
82         jLabel2 = new javax.swing.JLabel JavaDoc();
83         jLabel3 = new javax.swing.JLabel JavaDoc();
84         jLabel4 = new javax.swing.JLabel JavaDoc();
85         jLabel5 = new javax.swing.JLabel JavaDoc();
86         jTextField1 = new javax.swing.JTextField JavaDoc();
87         jTextField2 = new javax.swing.JTextField JavaDoc();
88         browseButton = new javax.swing.JButton JavaDoc();
89         jComboBox1 = new javax.swing.JComboBox JavaDoc();
90         jComboBox2 = new javax.swing.JComboBox JavaDoc();
91         jComboBox3 = new javax.swing.JComboBox JavaDoc();
92
93         jLabel1.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/design/view/actions/Bundle").getString("LBL_OperationName_mnem").charAt(0));
94         jLabel1.setLabelFor(jTextField1);
95         jLabel1.setText(org.openide.util.NbBundle.getMessage(AddOperationFromSchemaPanel.class, "LBL_OperationName")); // NOI18N
96

97         jLabel2.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/design/view/actions/Bundle").getString("LBL_SchemaFiles_mnem").charAt(0));
98         jLabel2.setLabelFor(jTextField2);
99         jLabel2.setText(org.openide.util.NbBundle.getMessage(AddOperationFromSchemaPanel.class, "LBL_SchemaFiles")); // NOI18N
100

101         jLabel3.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/design/view/actions/Bundle").getString("LBL_ParameterTypes_mnem").charAt(0));
102         jLabel3.setLabelFor(jComboBox1);
103         jLabel3.setText(org.openide.util.NbBundle.getMessage(AddOperationFromSchemaPanel.class, "LBL_ParameterTypes")); // NOI18N
104

105         jLabel4.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/design/view/actions/Bundle").getString("LBL_ReturnType_mnem").charAt(0));
106         jLabel4.setLabelFor(jComboBox2);
107         jLabel4.setText(org.openide.util.NbBundle.getMessage(AddOperationFromSchemaPanel.class, "LBL_ReturnType")); // NOI18N
108

109         jLabel5.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/design/view/actions/Bundle").getString("LBL_FaultType_mnem").charAt(0));
110         jLabel5.setLabelFor(jComboBox3);
111         jLabel5.setText(org.openide.util.NbBundle.getMessage(AddOperationFromSchemaPanel.class, "LBL_FaultType")); // NOI18N
112

113         browseButton.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/design/view/actions/Bundle").getString("LBL_Browse_mnem").charAt(0));
114         browseButton.setText(org.openide.util.NbBundle.getMessage(AddOperationFromSchemaPanel.class, "LBL_Browse")); // NOI18N
115

116         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
117         this.setLayout(layout);
118         layout.setHorizontalGroup(
119             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
120             .add(layout.createSequentialGroup()
121                 .addContainerGap()
122                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
123                     .add(org.jdesktop.layout.GroupLayout.TRAILING, browseButton)
124                     .add(layout.createSequentialGroup()
125                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
126                             .add(jLabel4)
127                             .add(jLabel1)
128                             .add(jLabel2)
129                             .add(jLabel3)
130                             .add(jLabel5))
131                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
132                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
133                             .add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE)
134                             .add(org.jdesktop.layout.GroupLayout.TRAILING, jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE)
135                             .add(org.jdesktop.layout.GroupLayout.TRAILING, jComboBox1, 0, 469, Short.MAX_VALUE)
136                             .add(org.jdesktop.layout.GroupLayout.TRAILING, jComboBox3, 0, 469, Short.MAX_VALUE)
137                             .add(jComboBox2, 0, 469, Short.MAX_VALUE))))
138                 .addContainerGap())
139         );
140         layout.setVerticalGroup(
141             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
142             .add(layout.createSequentialGroup()
143                 .addContainerGap()
144                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
145                     .add(jLabel1)
146                     .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
147                 .add(18, 18, 18)
148                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
149                     .add(jLabel2)
150                     .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
151                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
152                 .add(browseButton)
153                 .add(46, 46, 46)
154                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
155                     .add(jLabel3)
156                     .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
157                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
158                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
159                     .add(jLabel4)
160                     .add(jComboBox2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
161                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
162                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
163                     .add(jComboBox3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
164                     .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
165                 .addContainerGap(71, Short.MAX_VALUE))
166         );
167     }// </editor-fold>//GEN-END:initComponents
168

169     
170     // Variables declaration - do not modify//GEN-BEGIN:variables
171
private javax.swing.JButton JavaDoc browseButton;
172     private javax.swing.JComboBox JavaDoc jComboBox1;
173     private javax.swing.JComboBox JavaDoc jComboBox2;
174     private javax.swing.JComboBox JavaDoc jComboBox3;
175     private javax.swing.JLabel JavaDoc jLabel1;
176     private javax.swing.JLabel JavaDoc jLabel2;
177     private javax.swing.JLabel JavaDoc jLabel3;
178     private javax.swing.JLabel JavaDoc jLabel4;
179     private javax.swing.JLabel JavaDoc jLabel5;
180     private javax.swing.JTextField JavaDoc jTextField1;
181     private javax.swing.JTextField JavaDoc jTextField2;
182     // End of variables declaration//GEN-END:variables
183

184 }
185
Popular Tags