KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > customization > multiview > PortTypeOperationPanel


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 /*
21  * PortTypeOperationPanel.java
22  *
23  * Created on February 17, 2006, 4:15 PM
24  */

25
26 package org.netbeans.modules.websvc.customization.multiview;
27
28 import java.awt.Color JavaDoc;
29 import java.awt.event.ItemEvent JavaDoc;
30 import java.awt.event.ItemListener JavaDoc;
31 import java.beans.PropertyChangeEvent JavaDoc;
32 import java.beans.PropertyChangeListener JavaDoc;
33 import java.util.List JavaDoc;
34 import javax.swing.JButton JavaDoc;
35 import javax.swing.JComponent JavaDoc;
36 import javax.swing.text.JTextComponent JavaDoc;
37 import org.netbeans.modules.websvc.core.JaxWsUtils;
38 import org.netbeans.modules.websvc.customization.model.CustomizationComponentFactory;
39 import org.netbeans.modules.websvc.customization.model.DefinitionsCustomization;
40 import org.netbeans.modules.websvc.customization.model.EnableAsyncMapping;
41 import org.netbeans.modules.websvc.customization.model.EnableWrapperStyle;
42 import org.netbeans.modules.websvc.customization.model.JavaMethod;
43 import org.netbeans.modules.websvc.customization.model.PortTypeCustomization;
44 import org.netbeans.modules.websvc.customization.model.PortTypeOperationCustomization;
45 import org.netbeans.modules.xml.multiview.ui.SectionView;
46 import org.netbeans.modules.xml.multiview.ui.SectionVisualTheme;
47 import org.netbeans.modules.xml.wsdl.model.Definitions;
48 import org.netbeans.modules.xml.wsdl.model.Operation;
49 import org.netbeans.modules.xml.wsdl.model.PortType;
50 import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
51 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
52 import org.openide.util.WeakListeners;
53 import org.netbeans.modules.xml.multiview.Error;
54 import org.openide.nodes.Node;
55 import org.openide.util.NbBundle;
56
57 /**
58  *
59  * @author Roderico Cruz
60  */

61 public class PortTypeOperationPanel extends SaveableSectionInnerPanel{
62     private Operation operation;
63     private WSDLModel model;
64     private boolean wsdlDirty;
65     private DefaultItemListener dil;
66     private ModelChangeListener modelListener;
67     private ModelChangeListener primaryModelListener;
68     private Definitions primaryDefinitions;
69     private WSDLModel primaryModel;
70     
71     /** Creates new form PortTypeOperationPanel */
72     public PortTypeOperationPanel(SectionView view, Operation operation,
73             Node node, Definitions primaryDefinitions) {
74         super(view);
75         this.operation = operation;
76         this.primaryDefinitions = primaryDefinitions;
77         this.model = this.operation.getModel();
78         this.primaryModel = this.primaryDefinitions.getModel();
79         
80         initComponents();
81         if(!isClient(node)){
82             enableAsyncMappingCB.setVisible(false);
83         }
84         portTypeLabel.setBackground(SectionVisualTheme.getDocumentBackgroundColor());
85         portTypeName.setBackground(SectionVisualTheme.getDocumentBackgroundColor());
86         portTypeName.setText(getParentOfOperation(operation));
87         this.enableAsyncMappingCB.setBackground(SectionVisualTheme.getDocumentBackgroundColor());
88         this.enableWrapperStyleCB.setBackground(SectionVisualTheme.getDocumentBackgroundColor());
89         javaMethodName.setBackground(SectionVisualTheme.getDocumentBackgroundColor());
90         enableAsyncMappingCB.setToolTipText(NbBundle.getMessage(DefinitionsPanel.class, "TOOLTIP_ENABLE_ASYNC"));
91         enableWrapperStyleCB.setToolTipText(NbBundle.getMessage(DefinitionsPanel.class, "TOOLTIP_ENABLE_WRAPPER"));
92         syncButtons();
93         syncJavaMethod();
94         
95         dil = new DefaultItemListener();
96         ItemListener JavaDoc il = (ItemListener JavaDoc)WeakListeners.create(ItemListener JavaDoc.class, dil, defaultMethodCB);
97         defaultMethodCB.addItemListener(il);
98         
99         modelListener = new ModelChangeListener();
100         PropertyChangeListener JavaDoc pcl = WeakListeners.propertyChange(modelListener, model);
101         model.addPropertyChangeListener(pcl);
102         
103         if(model != primaryModel){
104             primaryModelListener = new ModelChangeListener();
105             PropertyChangeListener JavaDoc l = WeakListeners.propertyChange(primaryModelListener, primaryModel);
106             primaryModel.addPropertyChangeListener(l);
107         }
108  
109         addModifier(javaMethodName);
110         addModifier(defaultMethodCB);
111         addModifier(enableAsyncMappingCB);
112         addModifier(enableWrapperStyleCB);
113         addValidatee(javaMethodName);
114     }
115     
116     private String JavaDoc getParentOfOperation(Operation operation){
117         PortType portType = (PortType)operation.getParent();
118         return portType.getName();
119     }
120     
121     class DefaultItemListener implements ItemListener JavaDoc{
122         public void itemStateChanged(ItemEvent JavaDoc e) {
123             if(defaultMethodCB.isSelected()){
124                 javaMethodName.setBackground(Color.LIGHT_GRAY);
125                 javaMethodName.setEnabled(false);
126             } else{
127                 javaMethodName.setEnabled(true);
128                 javaMethodName.setBackground(Color.WHITE);
129                 javaMethodName.requestFocus();
130             }
131         }
132     }
133     
134     class ModelChangeListener implements PropertyChangeListener JavaDoc{
135         public void propertyChange(PropertyChangeEvent JavaDoc evt) {
136             Object JavaDoc source = evt.getSource();
137             if (source instanceof EnableWrapperStyle){
138                 EnableWrapperStyle ews = (EnableWrapperStyle)source;
139                 WSDLComponent parent = ews.getParent();
140                 if(parent instanceof DefinitionsCustomization ||
141                         parent instanceof PortTypeCustomization){
142                     syncButtons();
143                 }
144             } else if (source instanceof EnableAsyncMapping){
145                 EnableAsyncMapping eam = (EnableAsyncMapping)source;
146                 WSDLComponent parent = eam.getParent();
147                 if(parent instanceof DefinitionsCustomization ||
148                         parent instanceof PortTypeCustomization){
149                     syncButtons();
150                 }
151             }
152         }
153     }
154     
155     private void syncJavaMethod(){
156         List JavaDoc<PortTypeOperationCustomization> ee =
157                 operation.getExtensibilityElements(PortTypeOperationCustomization.class);
158         if(ee.size() == 1){
159             PortTypeOperationCustomization ptoc = ee.get(0);
160             JavaMethod jm = ptoc.getJavaMethod();
161             if(jm != null){
162                 setJavaMethod(jm.getName());
163             } else{
164                 defaultMethodCB.setSelected(true);
165                 javaMethodName.setBackground(Color.LIGHT_GRAY);
166                 javaMethodName.setEnabled(false);
167             }
168         } else{
169             defaultMethodCB.setSelected(true);
170             javaMethodName.setBackground(Color.LIGHT_GRAY);
171             javaMethodName.setEnabled(false);
172         }
173     }
174     
175     final public void syncButtons(){
176         List JavaDoc<PortTypeOperationCustomization> ee =
177                 operation.getExtensibilityElements(PortTypeOperationCustomization.class);
178         if(ee.size() == 1){
179             PortTypeOperationCustomization ptoc = ee.get(0);
180             EnableAsyncMapping eam = ptoc.getEnableAsyncMapping();
181             if(eam != null){
182                 setEnableAsyncMapping(eam.isEnabled());
183             } else{
184                 setEnableAsyncMapping(getAsyncMappingOfParent());
185             }
186             EnableWrapperStyle ews = ptoc.getEnableWrapperStyle();
187             if(ews != null){
188                 setEnableWrapperStyle(ews.isEnabled());
189             } else{
190                 setEnableWrapperStyle(getWrapperStyleOfParent());
191             }
192             
193         } else{
194             setEnableAsyncMapping(getAsyncMappingOfParent());
195             setEnableWrapperStyle(getWrapperStyleOfParent());
196             defaultMethodCB.setSelected(true);
197             javaMethodName.setBackground(Color.LIGHT_GRAY);
198             javaMethodName.setEnabled(false);
199         }
200     }
201     
202     private boolean getAsyncMappingOfParent(){
203         boolean isAsyncMapping = false;
204         PortType portType = (PortType)operation.getParent();
205         List JavaDoc<PortTypeCustomization> ptcs = portType.getExtensibilityElements(PortTypeCustomization.class);
206         if(ptcs.size() > 0) { //there is a PortTypeCustomization
207
PortTypeCustomization ptc = ptcs.get(0);
208             EnableAsyncMapping asyncMapping = ptc.getEnableAsyncMapping();
209             if(asyncMapping != null){ //there is an async mapping
210
isAsyncMapping = asyncMapping.isEnabled();
211             }else{
212                 isAsyncMapping = getAsyncMappingFromDefinitions(primaryDefinitions);
213             }
214         } else{ //there is no PortTypeCustomization, look in Definitions
215
isAsyncMapping = getAsyncMappingFromDefinitions(primaryDefinitions);
216         }
217         return isAsyncMapping;
218     }
219     
220     private boolean getAsyncMappingFromDefinitions(Definitions definitions){
221         List JavaDoc<DefinitionsCustomization> dcs = definitions.getExtensibilityElements(DefinitionsCustomization.class);
222         if(dcs.size() > 0){
223             DefinitionsCustomization dc = dcs.get(0);
224             EnableAsyncMapping asyncMapping = dc.getEnableAsyncMapping();
225             if(asyncMapping != null){
226                 return asyncMapping.isEnabled();
227             }
228         }
229         return false;
230     }
231     
232     private boolean getWrapperStyleFromDefinitions(Definitions definitions){
233         List JavaDoc<DefinitionsCustomization> dcs = definitions.getExtensibilityElements(DefinitionsCustomization.class);
234         if(dcs.size() > 0){
235             DefinitionsCustomization dc = dcs.get(0);
236             EnableWrapperStyle wrapperStyle = dc.getEnableWrapperStyle();
237             if(wrapperStyle != null){
238                 return wrapperStyle.isEnabled();
239             }
240         }
241         return true;
242     }
243     
244     private boolean getWrapperStyleOfParent(){
245         boolean isWrapperStyle = true;
246         PortType portType = (PortType)operation.getParent();
247         List JavaDoc<PortTypeCustomization> ptcs = portType.getExtensibilityElements(PortTypeCustomization.class);
248         if(ptcs.size() > 0) { //there is a PortTypeCustomization
249
PortTypeCustomization ptc = ptcs.get(0);
250             EnableWrapperStyle wrapperStyle = ptc.getEnableWrapperStyle();
251             if(wrapperStyle != null){ //there is a wrapper style
252
isWrapperStyle = wrapperStyle.isEnabled();
253             }else{
254                 isWrapperStyle = getWrapperStyleFromDefinitions(primaryDefinitions);
255             }
256         } else{ //there is no PortTypeCustomization, look in Definitions
257
isWrapperStyle = getWrapperStyleFromDefinitions(primaryDefinitions);
258         }
259         return isWrapperStyle;
260     }
261     
262     public void setEnableAsyncMapping(boolean enable){
263         enableAsyncMappingCB.setSelected(enable);
264     }
265     
266     public boolean getEnableAsyncMapping(){
267         return enableAsyncMappingCB.isSelected();
268     }
269     
270     public void setEnableWrapperStyle(boolean enable){
271         enableWrapperStyleCB.setSelected(enable);
272     }
273     
274     public boolean getEnableWrapperStyle(){
275         return enableWrapperStyleCB.isSelected();
276     }
277     
278     
279     public void setJavaMethod(String JavaDoc method){
280         javaMethodName.setText(method);
281     }
282     
283     public JComponent JavaDoc getErrorComponent(String JavaDoc string) {
284         return new JButton JavaDoc("error");
285     }
286     
287     public void linkButtonPressed(Object JavaDoc object, String JavaDoc string) {
288     }
289     
290     public void setValue(JComponent JavaDoc jComponent, Object JavaDoc object) {
291         List JavaDoc <PortTypeOperationCustomization> ee =
292                 operation.getExtensibilityElements(PortTypeOperationCustomization.class);
293         CustomizationComponentFactory factory = CustomizationComponentFactory.getDefault();
294         if(jComponent == javaMethodName ||
295                 jComponent == defaultMethodCB){
296             String JavaDoc text = javaMethodName.getText();
297             if(text != null && !text.trim().equals("")
298             && !defaultMethodCB.isSelected()){
299                  if(!JaxWsUtils.isJavaIdentifier(text)){
300                      return;
301                  }
302                 if(ee.size() > 0){ //there is existing extensibility element
303
PortTypeOperationCustomization ptoc = ee.get(0);
304                     JavaMethod jm = ptoc.getJavaMethod();
305                     if(jm == null){ //there is no JavaMethod, create one
306
try{
307                             jm = factory.createJavaMethod(model);
308                             model.startTransaction();
309                             jm.setName(text); //TODO Need to validate this before setting it
310
ptoc.setJavaMethod(jm);
311                             wsdlDirty = true;
312                         }finally{
313                                 model.endTransaction();
314                         }
315                     } else{ //javamethod already exists
316
//reset the JavaMethod
317
try{
318                             model.startTransaction();
319                             jm.setName(text);
320                             
321                             wsdlDirty = true;
322                         } finally{
323                                 model.endTransaction();
324                         }
325                     }
326                 }else{ //there is no ExtensibilityElement
327
//create extensibility element and add JavaMethod
328
PortTypeOperationCustomization ptoc = factory.createPortTypeOperationCustomization(model);
329                     JavaMethod jm = factory.createJavaMethod(model);
330                     try{
331                         model.startTransaction();
332                         jm.setName(text);
333                         ptoc.setJavaMethod(jm);
334                         operation.addExtensibilityElement(ptoc);
335                         wsdlDirty = true;
336                     } finally{
337                             model.endTransaction();
338                     }
339                 }
340             } else{ //no javamethod is specified
341
if(ee.size() == 1){
342                     try{
343                         PortTypeOperationCustomization ptoc = ee.get(0);
344                         JavaMethod jm = ptoc.getJavaMethod();
345                         if(jm != null){
346                             model.startTransaction();
347                             ptoc.removeJavaMethod(jm);
348                             //if(ptoc has no more children, remove it as well)
349
if(ptoc.getChildren().size() == 0){
350                                 operation.removeExtensibilityElement(ptoc);
351                             }
352                             wsdlDirty = true;
353                         }
354                     } finally{
355                             model.endTransaction();
356                     }
357                 }
358             }
359         } else if(jComponent == enableWrapperStyleCB){
360             if(ee.size() > 0){ //there is an extensibility element
361
PortTypeOperationCustomization poc = ee.get(0);
362                 EnableWrapperStyle ews = poc.getEnableWrapperStyle();
363                 if(ews == null){ //there is no EnableWrapperStyle, create one
364
try{
365                         model.startTransaction();
366                         ews = factory.createEnableWrapperStyle(model);
367                         ews.setEnabled(this.getEnableWrapperStyle());
368                         poc.setEnableWrapperStyle(ews);
369                         wsdlDirty = true;
370                     } finally{
371                             model.endTransaction();
372                     }
373                 } else{ //there is an EnableWrapperStyle, reset it
374
try{
375                         model.startTransaction();
376                         ews.setEnabled(this.getEnableWrapperStyle());
377                         wsdlDirty = true;
378                     } finally{
379                             model.endTransaction();
380                     }
381                 }
382             } else{ //there is no extensibility element, add a new one and add a new
383
//wrapper style element
384
PortTypeOperationCustomization poc = factory.createPortTypeOperationCustomization(model);
385                 EnableWrapperStyle ews = factory.createEnableWrapperStyle(model);
386                 try{
387                     model.startTransaction();
388                     ews.setEnabled(this.getEnableWrapperStyle());
389                     poc.setEnableWrapperStyle(ews);
390                     operation.addExtensibilityElement(poc);
391                     wsdlDirty = true;
392                 } finally{
393                         model.endTransaction();
394                 }
395             }
396         } else if(jComponent == this.enableAsyncMappingCB){
397             if(ee.size() > 0){ //there is an extensibility element
398
PortTypeOperationCustomization poc = ee.get(0);
399                 EnableAsyncMapping eam = poc.getEnableAsyncMapping();
400                 if(eam == null){ //there is no EnableAsyncMapping, create one
401
try{
402                         model.startTransaction();
403                         eam = factory.createEnableAsyncMapping(model);
404                         eam.setEnabled(this.getEnableAsyncMapping());
405                         poc.setEnableAsyncMapping(eam);
406                         wsdlDirty = true;
407                     } finally{
408                             model.endTransaction();
409                     }
410                 } else{ //there is an EnableAsyncMapping, reset it
411
try{
412                         model.startTransaction();
413                         eam.setEnabled(this.getEnableAsyncMapping());
414                         wsdlDirty = true;
415                     } finally{
416                             model.endTransaction();
417                     }
418                 }
419             } else{ //there is no extensibility element, add a new one and add a new
420
//enable asyncmapping element
421
PortTypeOperationCustomization poc = factory.createPortTypeOperationCustomization(model);
422                 EnableAsyncMapping eam = factory.createEnableAsyncMapping(model);
423                 try{
424                     model.startTransaction();
425                     eam.setEnabled(this.getEnableAsyncMapping());
426                     poc.setEnableAsyncMapping(eam);
427                     operation.addExtensibilityElement(poc);
428                     wsdlDirty = true;
429                 } finally{
430                         model.endTransaction();
431                 }
432             }
433         }
434     }
435     
436     public void documentChanged(JTextComponent JavaDoc comp, String JavaDoc val) {
437         if(comp == javaMethodName){
438             if(!JaxWsUtils.isJavaIdentifier(val)){
439                 getSectionView().getErrorPanel().
440                         setError(new Error JavaDoc(Error.TYPE_FATAL,
441                         Error.ERROR_MESSAGE, val, comp));
442                 return;
443             }
444         }
445         getSectionView().getErrorPanel().clearError();
446     }
447     
448     public void rollbackValue(JTextComponent JavaDoc source) {
449         if(source == javaMethodName){
450             String JavaDoc methodName = "";
451             List JavaDoc <PortTypeOperationCustomization> ee =
452                     operation.getExtensibilityElements(PortTypeOperationCustomization.class);
453             if(ee.size() == 1){
454                 PortTypeOperationCustomization ptoc = ee.get(0);
455                 JavaMethod jm = ptoc.getJavaMethod();
456                 if(jm != null){
457                     methodName = jm.getName();
458                 }
459             }
460             javaMethodName.setText(methodName);
461         }
462     }
463     
464     public boolean wsdlIsDirty() {
465        
466         return wsdlDirty;
467     }
468     
469     public void save() {
470          if(wsdlDirty){
471            this.setModelDirty(model);
472         }
473     }
474     /** This method is called from within the constructor to
475      * initialize the form.
476      * WARNING: Do NOT modify this code. The content of this method is
477      * always regenerated by the Form Editor.
478      */

479     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
480
private void initComponents() {
481         ewsButtonGroup = new javax.swing.ButtonGroup JavaDoc();
482         eamButtonGroup = new javax.swing.ButtonGroup JavaDoc();
483         jLabel4 = new javax.swing.JLabel JavaDoc();
484         javaMethodName = new javax.swing.JTextField JavaDoc();
485         defaultMethodCB = new javax.swing.JCheckBox JavaDoc();
486         enableWrapperStyleCB = new javax.swing.JCheckBox JavaDoc();
487         enableAsyncMappingCB = new javax.swing.JCheckBox JavaDoc();
488         portTypeLabel = new javax.swing.JLabel JavaDoc();
489         portTypeName = new javax.swing.JLabel JavaDoc();
490
491         jLabel4.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_JAVA_METHOD_NAME"));
492         jLabel4.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_JAVA_METHOD_NAME"));
493
494         javaMethodName.setToolTipText(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("TOOLTIP_PORTTYPE_METHOD"));
495         javaMethodName.setDisabledTextColor(new java.awt.Color JavaDoc(0, 0, 0));
496         javaMethodName.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_JAVA_METHOD_NAME"));
497         javaMethodName.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_JAVA_METHOD_NAME"));
498
499         defaultMethodCB.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("MNEMONIC_USE_DEFAULT").charAt(0));
500         defaultMethodCB.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_USE_DEFAULT"));
501         defaultMethodCB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
502         defaultMethodCB.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
503         defaultMethodCB.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_USE_DEFAULT"));
504         defaultMethodCB.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_USE_DEFAULT"));
505
506         enableWrapperStyleCB.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("MNEMONIC_ENABLE_WRAPPER_STYLE").charAt(0));
507         enableWrapperStyleCB.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENABLE_WRAPPER_STYLE"));
508         enableWrapperStyleCB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
509         enableWrapperStyleCB.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
510         enableWrapperStyleCB.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENABLE_WRAPPER_STYLE"));
511         enableWrapperStyleCB.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENABLE_WRAPPER_STYLE"));
512
513         enableAsyncMappingCB.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("MNEMONIC_ENABLE_ASYNC_CLIENT").charAt(0));
514         enableAsyncMappingCB.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENABLE_ASYNC_MAPPING"));
515         enableAsyncMappingCB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
516         enableAsyncMappingCB.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
517         enableAsyncMappingCB.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENABLE_ASYNC_MAPPING"));
518         enableAsyncMappingCB.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENABLE_ASYNC_MAPPING"));
519
520         portTypeLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENCLOSING_PORTTYPE"));
521         portTypeLabel.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/websvc/customization/multiview/Bundle").getString("LBL_ENCLOSING_PORTTYPE"));
522
523         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
524         this.setLayout(layout);
525         layout.setHorizontalGroup(
526             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
527             .add(layout.createSequentialGroup()
528                 .add(22, 22, 22)
529                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
530                     .add(enableAsyncMappingCB)
531                     .add(enableWrapperStyleCB)
532                     .add(layout.createSequentialGroup()
533                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
534                             .add(portTypeLabel)
535                             .add(jLabel4))
536                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
537                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
538                             .add(layout.createSequentialGroup()
539                                 .add(javaMethodName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 132, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
540                                 .add(14, 14, 14)
541                                 .add(defaultMethodCB))
542                             .add(layout.createSequentialGroup()
543                                 .add(portTypeName)
544                                 .add(106, 106, 106)))))
545                 .addContainerGap(103, Short.MAX_VALUE))
546         );
547         layout.setVerticalGroup(
548             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
549             .add(layout.createSequentialGroup()
550                 .add(9, 9, 9)
551                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
552                     .add(portTypeLabel)
553                     .add(portTypeName))
554                 .add(15, 15, 15)
555                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
556                     .add(jLabel4)
557                     .add(javaMethodName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
558                     .add(defaultMethodCB))
559                 .add(15, 15, 15)
560                 .add(enableWrapperStyleCB)
561                 .add(12, 12, 12)
562                 .add(enableAsyncMappingCB)
563                 .addContainerGap(24, Short.MAX_VALUE))
564         );
565     }// </editor-fold>//GEN-END:initComponents
566

567     
568     // Variables declaration - do not modify//GEN-BEGIN:variables
569
private javax.swing.JCheckBox JavaDoc defaultMethodCB;
570     private javax.swing.ButtonGroup JavaDoc eamButtonGroup;
571     private javax.swing.JCheckBox JavaDoc enableAsyncMappingCB;
572     private javax.swing.JCheckBox JavaDoc enableWrapperStyleCB;
573     private javax.swing.ButtonGroup JavaDoc ewsButtonGroup;
574     private javax.swing.JLabel JavaDoc jLabel4;
575     private javax.swing.JTextField JavaDoc javaMethodName;
576     private javax.swing.JLabel JavaDoc portTypeLabel;
577     private javax.swing.JLabel JavaDoc portTypeName;
578     // End of variables declaration//GEN-END:variables
579

580 }
581
Popular Tags