1 19 20 21 package org.netbeans.modules.j2ee.deployment.config; 22 23 import org.netbeans.modules.j2ee.deployment.plugins.api.*; 24 import org.netbeans.modules.schema2beans.*; 25 import java.util.*; 26 import java.beans.PropertyChangeListener ; 27 import java.beans.PropertyChangeEvent ; 28 29 public class DDProxy extends DDCommon implements PropertyChangeListener { 30 31 DDProxy(DDCommon parent, BaseBean bean, String dtdName, ModuleDeploymentSupport support) { 32 super(parent,bean,support,dtdName); 33 bean.addPropertyChangeListener(this); 34 } 35 36 final boolean isProxy() { 37 return true; 38 } 39 40 void cancelProxy() { 41 bean.removePropertyChangeListener(this); 42 } 43 44 public void propertyChange(PropertyChangeEvent event) { 45 46 Object oldValue = event.getOldValue(); 48 Object newValue = event.getNewValue(); 50 String name = event.getPropertyName(); 52 55 support.processEvent(oldValue,newValue,support.getBean(name,bean).proxy,event); 56 } 57 58 } 59 60 | Popular Tags |