1 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 ClientData extends BaseBean { 28 29 static Vector comparators = new Vector(); 30 31 32 public ClientData() { 33 this(Common.USE_DEFAULT_VALUES); 34 } 35 36 public ClientData(int options) { 37 super(ClientData.comparators, new org.netbeans.modules.schema2beans.Version(1, 0, 6)); 38 this.initialize(options); 40 } 41 42 void initialize(int options) { 44 45 } 46 47 public boolean verify() { 49 return true; 50 } 51 52 static public void addComparator(BeanComparator c) { 54 ClientData.comparators.add(c); 55 } 56 57 static public void removeComparator(BeanComparator c) { 59 ClientData.comparators.remove(c); 60 } 61 public void addPropertyChangeListener(PropertyChangeListener l) { 63 BeanProp p = this.beanProp(); 64 if (p != null) 65 p.addPCListener(l); 66 } 67 68 public void removePropertyChangeListener(PropertyChangeListener l) { 70 BeanProp p = this.beanProp(); 71 if (p != null) 72 p.removePCListener(l); 73 } 74 75 public void addPropertyChangeListener(String n, PropertyChangeListener l) { 77 BeanProp p = this.beanProp(n); 78 if (p != null) 79 p.addPCListener(l); 80 } 81 82 public void removePropertyChangeListener(String n, 84 PropertyChangeListener l) { 85 BeanProp p = this.beanProp(n); 86 if (p != null) 87 p.removePCListener(l); 88 } 89 90 public void dump(StringBuffer str, String indent) { 92 String s; 93 BaseBean n; 94 } 95 96 public String dumpBeanNode() { 97 StringBuffer str = new StringBuffer (); 98 str.append("ClientData\n"); this.dump(str, "\n "); return str.toString(); 101 } 102 } 103 104 | Popular Tags |