1 7 8 package java.beans.beancontext; 9 10 import java.util.EventObject ; 11 12 import java.beans.beancontext.BeanContext ; 13 14 32 33 public abstract class BeanContextEvent extends EventObject { 34 35 40 protected BeanContextEvent(BeanContext bc) { 41 super(bc); 42 } 43 44 48 public BeanContext getBeanContext() { return (BeanContext )getSource(); } 49 50 55 public synchronized void setPropagatedFrom(BeanContext bc) { 56 propagatedFrom = bc; 57 } 58 59 64 public synchronized BeanContext getPropagatedFrom() { 65 return propagatedFrom; 66 } 67 68 74 public synchronized boolean isPropagated() { 75 return propagatedFrom != null; 76 } 77 78 81 82 85 protected BeanContext propagatedFrom; 86 } 87 88 89 90 91 92 93 94 | Popular Tags |