KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > tests > j2eeserver > plugin > jsr88 > EarConfigBean


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 package org.netbeans.tests.j2eeserver.plugin.jsr88;
22
23 import org.netbeans.tests.j2eeserver.plugin.jsr88.ui.EarConfigBeanPanel;
24
25 import javax.enterprise.deploy.spi.exceptions.*;
26 import javax.enterprise.deploy.spi.*;
27 import java.beans.*;
28 import javax.enterprise.deploy.model.*;
29
30
31 /**
32  *
33  * @author gfink
34  */

35 public class EarConfigBean implements DConfigBeanRoot {
36
37     DDBean bean;
38     DepConfig config;
39
40     public EarConfigBean(DDBean bean,DepConfig config) {
41         this.bean = bean; this.config = config;
42         securityLevel = ""; //NOI18N
43
sessionParam = ""; //NOI18N
44
}
45       
46     public DConfigBean getDConfigBean(DDBean dDBean) throws ConfigurationException {
47         return null;
48     }
49     
50     public DDBean getDDBean() {
51         return bean;
52     }
53     
54     public String JavaDoc[] getXpaths() {
55         return null;
56     }
57     
58     public void notifyDDChange(XpathEvent xpathEvent) {
59     }
60     
61     public void removeDConfigBean(DConfigBean dConfigBean) throws BeanNotFoundException {
62     }
63     
64       /** Utility field used by bound properties. */
65       private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
66       
67       /** Holds value of property securityLevel. */
68       private String JavaDoc securityLevel;
69       
70       /** Holds value of property sessionParam. */
71       private String JavaDoc sessionParam;
72       
73     public void addPropertyChangeListener(PropertyChangeListener listener) {
74         propertyChangeSupport.addPropertyChangeListener(listener);
75     }
76     
77     public void removePropertyChangeListener(PropertyChangeListener listener) {
78         propertyChangeSupport.removePropertyChangeListener(listener);
79     }
80     
81     /** Getter for property securityLevel.
82      * @return Value of property securityLevel.
83      *
84      */

85     public String JavaDoc getSecurityLevel() {
86         return this.securityLevel;
87     }
88     
89     /** Setter for property securityLevel.
90      * @param securityLevel New value of property securityLevel.
91      *
92      */

93     public void setSecurityLevel(String JavaDoc securityLevel) {
94         if (getSecurityLevel().equals(securityLevel.trim())) {
95             return;
96         }
97         String JavaDoc oldSecurityLevel = this.securityLevel;
98         this.securityLevel = securityLevel.trim();
99         propertyChangeSupport.firePropertyChange("securityLevel", oldSecurityLevel, securityLevel);
100     }
101     
102     /** Getter for property sessionParam.
103      * @return Value of property sessionParam.
104      *
105      */

106     public String JavaDoc getSessionParam() {
107         return this.sessionParam;
108     }
109     
110     /** Setter for property sessionParam.
111      * @param sessionParam New value of property sessionParam.
112      *
113      */

114     public void setSessionParam(String JavaDoc sessionParam) {
115         if (getSessionParam().equals(sessionParam.trim())) {
116             return;
117         }
118         String JavaDoc oldSessionParam = this.sessionParam;
119         this.sessionParam = sessionParam.trim();
120         propertyChangeSupport.firePropertyChange("sessionParam", oldSessionParam, sessionParam);
121     }
122     
123     public DConfigBean getDConfigBean(DDBeanRoot dDBeanRoot) {
124         return null;
125     }
126     
127 }
128
Popular Tags