KickJava   Java API By Example, From Geeks To Geeks.

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


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  * ActivationCfgPropertyPanel.java October 27, 2003, 5:55 PM
21  *
22  */

23
24 package org.netbeans.modules.j2ee.sun.share.configbean.customizers.ejbmodule;
25
26 import java.util.ResourceBundle JavaDoc;
27
28 import org.netbeans.modules.j2ee.sun.dd.api.ejb.ActivationConfigProperty;
29 import org.netbeans.modules.j2ee.sun.share.configbean.customizers.common.BeanInputDialog;
30 import org.netbeans.modules.j2ee.sun.share.configbean.customizers.common.BeanTablePanel;
31 import org.netbeans.modules.j2ee.sun.share.configbean.MDEjb;
32
33 /**
34  *
35  * @author Rajeshwar Patil
36  * @version %I%, %G%
37  */

38 public class ActivationCfgPropertyPanel extends BeanTablePanel{
39     /* A class implementation comment can go here. */
40     
41     static final ResourceBundle JavaDoc bundle =
42         ResourceBundle.getBundle(
43             "org.netbeans.modules.j2ee.sun.share.configbean.customizers.ejbmodule.Bundle"); //NOI18N
44

45     /** Creates a new instance of ActivationCfgPropertyPanel */
46     public ActivationCfgPropertyPanel(final ActivationCfgPropertyModel model) {
47         super(model);
48     }
49
50
51     void setModel(MDEjb mdEjb,
52         ActivationConfigProperty[] params) {
53         super.setModel(mdEjb, params);
54     }
55
56
57     public BeanInputDialog getInputDialog(Object JavaDoc[] values){
58         //called in case of EDIT operation
59
String JavaDoc title = bundle.getString("LBL_Property"); //NOI18N
60
return new PropertyDialog(this, title, values);
61
62     }
63
64
65     public BeanInputDialog getInputDialog(){
66         //called in case of ADD operation
67
String JavaDoc title = bundle.getString("LBL_Property"); //NOI18N
68
return new PropertyDialog(this, title);
69     }
70
71
72     protected String JavaDoc getAccessibleName(){
73         return bundle.getString("Activation_Config_Property_Acsbl_Name"); //NOI18N
74
}
75
76
77     protected String JavaDoc getAccessibleDesc(){
78         return bundle.getString("Activation_Config_Property_Acsbl_Desc"); //NOI18N
79
}
80 }
81
Popular Tags