KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > configbean > customizers > ejbmodule > BeanPoolPanel


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  * BeanPoolPanel.java October 21, 2003, 11:31 AM
21  *
22  */

23
24 package org.netbeans.modules.j2ee.sun.share.configbean.customizers.ejbmodule;
25
26 import java.util.ArrayList JavaDoc;
27 import java.util.ResourceBundle JavaDoc;
28
29 import org.netbeans.modules.j2ee.sun.dd.api.ejb.BeanPool;
30
31 import org.netbeans.modules.j2ee.sun.share.configbean.customizers.common.BaseCustomizer;
32 import org.netbeans.modules.j2ee.sun.share.configbean.customizers.common.ErrorSupport;
33 import org.netbeans.modules.j2ee.sun.share.configbean.customizers.common.ErrorSupportClient;
34 import org.netbeans.modules.j2ee.sun.share.configbean.customizers.common.ValidationSupport;
35
36 /**
37  *
38  * @author Rajeshwar Patil
39  * @version %I%, %G%
40  */

41 public class BeanPoolPanel extends javax.swing.JPanel JavaDoc
42         implements ErrorSupportClient {
43
44     private EjbCustomizer ejbCutomizer;
45     protected ErrorSupport errorSupport;
46     protected ValidationSupport validationSupport;
47
48     static final ResourceBundle JavaDoc bundle =
49         ResourceBundle.getBundle(
50             "org.netbeans.modules.j2ee.sun.share.configbean.customizers.ejbmodule.Bundle"); // NOI18N
51

52
53     /** Creates new form BeanPoolPanel */
54     public BeanPoolPanel(EjbCustomizer customizer) {
55         initComponents();
56         this.ejbCutomizer = customizer;
57         errorSupport = new ErrorSupport(this);
58         validationSupport = new ValidationSupport();
59     }
60
61
62     public void setValues(BeanPool beanPool){
63         if(beanPool != null){
64             steadyPoolSizeTextField.setText(beanPool.getSteadyPoolSize());
65             resizeQuantityTextField.setText(beanPool.getResizeQuantity());
66             maxPoolSizeTextField.setText(beanPool.getMaxPoolSize());
67             poolIdleTimeoutInSecondsTextField.setText(
68                 beanPool.getPoolIdleTimeoutInSeconds());
69         }
70     }
71
72
73     public java.awt.Container JavaDoc getErrorPanelParent(){
74         return this;
75     }
76
77
78     public java.awt.GridBagConstraints JavaDoc getErrorPanelConstraints(){
79         java.awt.GridBagConstraints JavaDoc gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
80         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
81         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
82         gridBagConstraints.weightx = 1.0;
83         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6,12,11,11);
84         return gridBagConstraints;
85     }
86
87
88     public java.util.Collection JavaDoc getErrors(){
89         if(validationSupport == null) assert(false);
90         ArrayList JavaDoc errors = new ArrayList JavaDoc();
91         
92         //Bean Pool fields Validation
93
String JavaDoc property = steadyPoolSizeTextField.getText();
94         errors.addAll(validationSupport.validate(property,
95             "/sun-ejb-jar/enterprise-beans/ejb/bean-pool/steady-pool-size", //NOI18N
96
bundle.getString("LBL_Steady_Pool_Size"))); //NOI18N
97

98         property = resizeQuantityTextField.getText();
99         errors.addAll(validationSupport.validate(property,
100             "/sun-ejb-jar/enterprise-beans/ejb/bean-pool/resize-quantity", //NOI18N
101
bundle.getString("LBL_Resize_Quantity"))); //NOI18N
102

103         property = poolIdleTimeoutInSecondsTextField.getText();
104         errors.addAll(validationSupport.validate(property,
105             "/sun-ejb-jar/enterprise-beans/ejb/bean-pool/pool-idle-timeout-in-seconds", //NOI18N
106
bundle.getString("LBL_Pool_Idle_Timeout_In_Seconds"))); //NOI18N
107

108         property = maxPoolSizeTextField.getText();
109         errors.addAll(validationSupport.validate(property,
110             "/sun-ejb-jar/enterprise-beans/ejb/bean-pool/max-pool-size", //NOI18N
111
bundle.getString("LBL_Max_Pool_Size"))); //NOI18N
112

113         return errors;
114     }
115     
116     public java.awt.Color JavaDoc getMessageForegroundColor() {
117         return BaseCustomizer.getErrorForegroundColor();
118     }
119
120     private void validateEntries(){
121         if(errorSupport != null){
122             errorSupport.showErrors();
123             ejbCutomizer.validate();
124             this.validate();
125         }
126         
127     }
128
129
130     /** This method is called from within the constructor to
131      * initialize the form.
132      * WARNING: Do NOT modify this code. The content of this method is
133      * always regenerated by the Form Editor.
134      */

135     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
136
private void initComponents() {
137         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
138
139         steadyPoolSizeLabel = new javax.swing.JLabel JavaDoc();
140         steadyPoolSizeTextField = new javax.swing.JTextField JavaDoc();
141         resizeQuantityLabel = new javax.swing.JLabel JavaDoc();
142         resizeQuantityTextField = new javax.swing.JTextField JavaDoc();
143         maxPoolSizeLabel = new javax.swing.JLabel JavaDoc();
144         maxPoolSizeTextField = new javax.swing.JTextField JavaDoc();
145         poolIdleTimeoutInSecondsLabel = new javax.swing.JLabel JavaDoc();
146         poolIdleTimeoutInSecondsTextField = new javax.swing.JTextField JavaDoc();
147         fillerPanel = new javax.swing.JPanel JavaDoc();
148
149         setLayout(new java.awt.GridBagLayout JavaDoc());
150
151         steadyPoolSizeLabel.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("MNC_Steady_Pool_Size").charAt(0));
152         steadyPoolSizeLabel.setLabelFor(steadyPoolSizeTextField);
153         steadyPoolSizeLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("LBL_Steady_Pool_Size_1"));
154         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
155         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
156         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 5);
157         add(steadyPoolSizeLabel, gridBagConstraints);
158         steadyPoolSizeLabel.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Steady_Pool_Size_Acsbl_Name"));
159         steadyPoolSizeLabel.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Steady_Pool_Size_Acsbl_Desc"));
160
161         steadyPoolSizeTextField.addActionListener(new java.awt.event.ActionListener JavaDoc() {
162             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
163                 steadyPoolSizeActionPerformed(evt);
164             }
165         });
166         steadyPoolSizeTextField.addKeyListener(new java.awt.event.KeyAdapter JavaDoc() {
167             public void keyReleased(java.awt.event.KeyEvent JavaDoc evt) {
168                 steadyPoolSizeKeyReleased(evt);
169             }
170         });
171
172         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
173         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
174         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
175         gridBagConstraints.weightx = 1.0;
176         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 5);
177         add(steadyPoolSizeTextField, gridBagConstraints);
178         steadyPoolSizeTextField.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Steady_Pool_Size_Acsbl_Name"));
179         steadyPoolSizeTextField.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Steady_Pool_Size_Acsbl_Desc"));
180
181         resizeQuantityLabel.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("MNC_Resize_Quantity").charAt(0));
182         resizeQuantityLabel.setLabelFor(resizeQuantityTextField);
183         resizeQuantityLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("LBL_Resize_Quantity_1"));
184         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
185         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
186         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 5);
187         add(resizeQuantityLabel, gridBagConstraints);
188         resizeQuantityLabel.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Resize_Quantity_Acsbl_Name"));
189         resizeQuantityLabel.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Bean_Pool_Resize_Quantity_Acsbl_Desc"));
190
191         resizeQuantityTextField.setToolTipText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Bean_Pool_Resize_Quantity_Tool_Tip"));
192         resizeQuantityTextField.addActionListener(new java.awt.event.ActionListener JavaDoc() {
193             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
194                 resizeQuantityActionPerformed(evt);
195             }
196         });
197         resizeQuantityTextField.addFocusListener(new java.awt.event.FocusAdapter JavaDoc() {
198             public void focusGained(java.awt.event.FocusEvent JavaDoc evt) {
199                 resizeQuantityFocusGained(evt);
200             }
201         });
202         resizeQuantityTextField.addKeyListener(new java.awt.event.KeyAdapter JavaDoc() {
203             public void keyReleased(java.awt.event.KeyEvent JavaDoc evt) {
204                 resizeQuantityKeyReleased(evt);
205             }
206         });
207
208         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
209         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
210         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
211         gridBagConstraints.weightx = 1.0;
212         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 5);
213         add(resizeQuantityTextField, gridBagConstraints);
214         resizeQuantityTextField.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Resize_Quantity_Acsbl_Name"));
215         resizeQuantityTextField.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Bean_Pool_Resize_Quantity_Acsbl_Desc"));
216
217         maxPoolSizeLabel.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("MNC_Max_Pool_Size").charAt(0));
218         maxPoolSizeLabel.setLabelFor(maxPoolSizeTextField);
219         maxPoolSizeLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("LBL_Max_Pool_Size_1"));
220         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
221         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
222         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 5);
223         add(maxPoolSizeLabel, gridBagConstraints);
224         maxPoolSizeLabel.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Max_Pool_Size_Acsbl_Name"));
225         maxPoolSizeLabel.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Max_Pool_Size_Acsbl_Desc"));
226
227         maxPoolSizeTextField.setToolTipText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Max_Pool_Size_Tool_Tip"));
228         maxPoolSizeTextField.addActionListener(new java.awt.event.ActionListener JavaDoc() {
229             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
230                 maxPoolSizeActionPerformed(evt);
231             }
232         });
233         maxPoolSizeTextField.addFocusListener(new java.awt.event.FocusAdapter JavaDoc() {
234             public void focusGained(java.awt.event.FocusEvent JavaDoc evt) {
235                 maxPoolSizeFocusGained(evt);
236             }
237         });
238         maxPoolSizeTextField.addKeyListener(new java.awt.event.KeyAdapter JavaDoc() {
239             public void keyReleased(java.awt.event.KeyEvent JavaDoc evt) {
240                 maxPoolSizeKeyReleased(evt);
241             }
242         });
243
244         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
245         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
246         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
247         gridBagConstraints.weightx = 1.0;
248         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 5);
249         add(maxPoolSizeTextField, gridBagConstraints);
250         maxPoolSizeTextField.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Max_Pool_Size_Acsbl_Name"));
251         maxPoolSizeTextField.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Max_Pool_Size_Acsbl_Desc"));
252
253         poolIdleTimeoutInSecondsLabel.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("MNC_Pool_Idle_Timeout_In_Seconds").charAt(0));
254         poolIdleTimeoutInSecondsLabel.setLabelFor(poolIdleTimeoutInSecondsTextField);
255         poolIdleTimeoutInSecondsLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("LBL_Pool_Idle_Timeout_In_Seconds_1"));
256         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
257         gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
258         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 5, 5);
259         add(poolIdleTimeoutInSecondsLabel, gridBagConstraints);
260         poolIdleTimeoutInSecondsLabel.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Pool_Idle_Timeout_In_Seconds_Acsbl_Name"));
261         poolIdleTimeoutInSecondsLabel.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Pool_Idle_Timeout_In_Seconds_Acsbl_Desc"));
262
263         poolIdleTimeoutInSecondsTextField.setToolTipText(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Pool_Idle_Timeout_In_Seconds_Tool_Tip"));
264         poolIdleTimeoutInSecondsTextField.addActionListener(new java.awt.event.ActionListener JavaDoc() {
265             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
266                 poolIdleTimeoutInSecondsActionPerformed(evt);
267             }
268         });
269         poolIdleTimeoutInSecondsTextField.addFocusListener(new java.awt.event.FocusAdapter JavaDoc() {
270             public void focusGained(java.awt.event.FocusEvent JavaDoc evt) {
271                 poolIdleTimeoutInSecondsFocusGained(evt);
272             }
273         });
274         poolIdleTimeoutInSecondsTextField.addKeyListener(new java.awt.event.KeyAdapter JavaDoc() {
275             public void keyReleased(java.awt.event.KeyEvent JavaDoc evt) {
276                 poolIdleTimeoutInSecondsKeyReleased(evt);
277             }
278         });
279
280         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
281         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
282         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
283         gridBagConstraints.weightx = 1.0;
284         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 5, 5);
285         add(poolIdleTimeoutInSecondsTextField, gridBagConstraints);
286         poolIdleTimeoutInSecondsTextField.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Pool_Idle_Timeout_In_Seconds_Acsbl_Name"));
287         poolIdleTimeoutInSecondsTextField.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/share/configbean/customizers/ejbmodule/Bundle").getString("Pool_Idle_Timeout_In_Seconds_Acsbl_Desc"));
288
289         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
290         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
291         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
292         gridBagConstraints.weightx = 1.0;
293         gridBagConstraints.weighty = 1.0;
294         add(fillerPanel, gridBagConstraints);
295
296     }// </editor-fold>//GEN-END:initComponents
297

298     private void poolIdleTimeoutInSecondsActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_poolIdleTimeoutInSecondsActionPerformed
299
// Add your handling code here:
300
validateEntries();
301     }//GEN-LAST:event_poolIdleTimeoutInSecondsActionPerformed
302

303     private void poolIdleTimeoutInSecondsFocusGained(java.awt.event.FocusEvent JavaDoc evt) {//GEN-FIRST:event_poolIdleTimeoutInSecondsFocusGained
304
// Add your handling code here:
305
validateEntries();
306     }//GEN-LAST:event_poolIdleTimeoutInSecondsFocusGained
307

308     private void maxPoolSizeFocusGained(java.awt.event.FocusEvent JavaDoc evt) {//GEN-FIRST:event_maxPoolSizeFocusGained
309
// Add your handling code here:
310
validateEntries();
311     }//GEN-LAST:event_maxPoolSizeFocusGained
312

313     private void maxPoolSizeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_maxPoolSizeActionPerformed
314
// Add your handling code here:
315
validateEntries();
316     }//GEN-LAST:event_maxPoolSizeActionPerformed
317

318     private void resizeQuantityFocusGained(java.awt.event.FocusEvent JavaDoc evt) {//GEN-FIRST:event_resizeQuantityFocusGained
319
// Add your handling code here:
320
validateEntries();
321     }//GEN-LAST:event_resizeQuantityFocusGained
322

323     private void resizeQuantityActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_resizeQuantityActionPerformed
324
// Add your handling code here:
325
validateEntries();
326     }//GEN-LAST:event_resizeQuantityActionPerformed
327

328     private void steadyPoolSizeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_steadyPoolSizeActionPerformed
329
// Add your handling code here:
330
validateEntries();
331     }//GEN-LAST:event_steadyPoolSizeActionPerformed
332

333     private void poolIdleTimeoutInSecondsKeyReleased(java.awt.event.KeyEvent JavaDoc evt) {//GEN-FIRST:event_poolIdleTimeoutInSecondsKeyReleased
334
// Add your handling code here:
335
String JavaDoc item = poolIdleTimeoutInSecondsTextField.getText();
336         ejbCutomizer.updatePoolIdleTimeoutInSeconds(item);
337         validateEntries();
338     }//GEN-LAST:event_poolIdleTimeoutInSecondsKeyReleased
339

340     private void maxPoolSizeKeyReleased(java.awt.event.KeyEvent JavaDoc evt) {//GEN-FIRST:event_maxPoolSizeKeyReleased
341
// Add your handling code here:
342
String JavaDoc item = maxPoolSizeTextField.getText();
343         ejbCutomizer.updateMaxPoolSize(item);
344         validateEntries();
345     }//GEN-LAST:event_maxPoolSizeKeyReleased
346

347     private void resizeQuantityKeyReleased(java.awt.event.KeyEvent JavaDoc evt) {//GEN-FIRST:event_resizeQuantityKeyReleased
348
// Add your handling code here:
349
String JavaDoc item = resizeQuantityTextField.getText();
350         ejbCutomizer.updateResizeQuantity(item);
351         validateEntries();
352     }//GEN-LAST:event_resizeQuantityKeyReleased
353

354     private void steadyPoolSizeKeyReleased(java.awt.event.KeyEvent JavaDoc evt) {//GEN-FIRST:event_steadyPoolSizeKeyReleased
355
// Add your handling code here:
356
String JavaDoc item = steadyPoolSizeTextField.getText();
357         ejbCutomizer.updateSteadyPoolSize(item);
358         validateEntries();
359     }//GEN-LAST:event_steadyPoolSizeKeyReleased
360

361     
362     // Variables declaration - do not modify//GEN-BEGIN:variables
363
private javax.swing.JPanel JavaDoc fillerPanel;
364     private javax.swing.JLabel JavaDoc maxPoolSizeLabel;
365     private javax.swing.JTextField JavaDoc maxPoolSizeTextField;
366     private javax.swing.JLabel JavaDoc poolIdleTimeoutInSecondsLabel;
367     private javax.swing.JTextField JavaDoc poolIdleTimeoutInSecondsTextField;
368     private javax.swing.JLabel JavaDoc resizeQuantityLabel;
369     private javax.swing.JTextField JavaDoc resizeQuantityTextField;
370     private javax.swing.JLabel JavaDoc steadyPoolSizeLabel;
371     private javax.swing.JTextField JavaDoc steadyPoolSizeTextField;
372     // End of variables declaration//GEN-END:variables
373
}
374
Popular Tags