KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > monitor > data > EngineData


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 package org.netbeans.modules.web.monitor.data;
21
22 import org.w3c.dom.*;
23 import org.netbeans.modules.schema2beans.*;
24 import java.beans.*;
25 import java.util.*;
26
27 public class EngineData extends BaseBean {
28
29     static Vector comparators = new Vector();
30
31
32     public EngineData() {
33     this(Common.USE_DEFAULT_VALUES);
34     }
35
36
37     public EngineData(int options) {
38     super(EngineData.comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 6));
39     // Properties (see root bean comments for the bean graph)
40
this.initialize(options);
41     }
42
43     // Setting the default values of the properties
44
void initialize(int options)
45     {
46
47     }
48
49     // This method verifies that the mandatory properties are set
50
public boolean verify()
51     {
52     return true;
53     }
54
55     //
56
static public void addComparator(BeanComparator c)
57     {
58     EngineData.comparators.add(c);
59     }
60
61     //
62
static public void removeComparator(BeanComparator c)
63     {
64     EngineData.comparators.remove(c);
65     }
66     //
67
public void addPropertyChangeListener(PropertyChangeListener l)
68     {
69     BeanProp p = this.beanProp();
70     if (p != null)
71         p.addPCListener(l);
72     }
73
74     //
75
public void removePropertyChangeListener(PropertyChangeListener l)
76     {
77     BeanProp p = this.beanProp();
78     if (p != null)
79         p.removePCListener(l);
80     }
81
82     //
83
public void addPropertyChangeListener(String JavaDoc n, PropertyChangeListener l)
84     {
85     BeanProp p = this.beanProp(n);
86     if (p != null)
87         p.addPCListener(l);
88     }
89
90     //
91
public void removePropertyChangeListener(String JavaDoc n, PropertyChangeListener l)
92     {
93     BeanProp p = this.beanProp(n);
94     if (p != null)
95         p.removePCListener(l);
96     }
97
98     // Dump the content of this bean returning it as a String
99
public void dump(StringBuffer JavaDoc str, String JavaDoc indent)
100     {
101     String JavaDoc s;
102     BaseBean n;
103     }
104
105     public String JavaDoc dumpBeanNode()
106     {
107     StringBuffer JavaDoc str = new StringBuffer JavaDoc();
108     str.append("EngineData\n");//NOI18N
109
this.dump(str, "\n ");//NOI18N
110
return str.toString();
111     }
112 }
113
114
Popular Tags