1 19 20 package org.netbeans.modules.websvc.design.view.actions; 21 22 import java.io.File ; 23 import java.net.URL ; 24 import java.util.List ; 25 import org.openide.util.NbBundle; 26 27 31 public class AddOperationFromSchemaPanel extends javax.swing.JPanel { 32 private File wsdlFile; 33 private List <URL > schemaFiles; 34 private String parameterType, returnType, faultType; 35 36 37 public AddOperationFromSchemaPanel(File 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 46 public AddOperationFromSchemaPanel() { 47 initComponents(); 48 jTextField1.setText(NbBundle.getMessage(AddOperationFromSchemaPanel.class, "TXT_DefaultOperationName")); 49 } 50 51 public File getWsdlFile() { 52 return wsdlFile; 53 } 54 55 public List <URL > getSchemaFiles() { 56 return schemaFiles; 57 } 58 59 public String getParameterType() { 60 return parameterType; 61 } 62 63 public String getReturnType() { 64 return returnType; 65 } 66 67 public String getFaultType() { 68 return faultType; 69 } 70 71 72 73 78 private void initComponents() { 80 81 jLabel1 = new javax.swing.JLabel (); 82 jLabel2 = new javax.swing.JLabel (); 83 jLabel3 = new javax.swing.JLabel (); 84 jLabel4 = new javax.swing.JLabel (); 85 jLabel5 = new javax.swing.JLabel (); 86 jTextField1 = new javax.swing.JTextField (); 87 jTextField2 = new javax.swing.JTextField (); 88 browseButton = new javax.swing.JButton (); 89 jComboBox1 = new javax.swing.JComboBox (); 90 jComboBox2 = new javax.swing.JComboBox (); 91 jComboBox3 = new javax.swing.JComboBox (); 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")); 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")); 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")); 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")); 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")); 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")); 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 } 169 170 private javax.swing.JButton browseButton; 172 private javax.swing.JComboBox jComboBox1; 173 private javax.swing.JComboBox jComboBox2; 174 private javax.swing.JComboBox jComboBox3; 175 private javax.swing.JLabel jLabel1; 176 private javax.swing.JLabel jLabel2; 177 private javax.swing.JLabel jLabel3; 178 private javax.swing.JLabel jLabel4; 179 private javax.swing.JLabel jLabel5; 180 private javax.swing.JTextField jTextField1; 181 private javax.swing.JTextField jTextField2; 182 184 } 185 | Popular Tags |