FileDocCategorySizeDatePackage
BeanContextEvent.javaAPI DocJava SE 5 API2426Fri Aug 26 14:56:58 BST 2005java.beans.beancontext

BeanContextEvent

public abstract class BeanContextEvent extends EventObject

BeanContextEvent is the abstract root event class for all events emitted from, and pertaining to the semantics of, a BeanContext. This class introduces a mechanism to allow the propagation of BeanContextEvent subclasses through a hierarchy of BeanContexts. The setPropagatedFrom() and getPropagatedFrom() methods allow a BeanContext to identify itself as the source of a propagated event.

author
Laurence P. G. Cable
version
1.14, 12/19/03
since
1.2
see
java.beans.beancontext.BeanContext

Fields Summary
protected BeanContext
propagatedFrom
The BeanContext from which this event was propagated
Constructors Summary
protected BeanContextEvent(BeanContext bc)
Contruct a BeanContextEvent

param
bc The BeanContext source

	super(bc);
    
Methods Summary
public java.beans.beancontext.BeanContextgetBeanContext()
Gets the BeanContext associated with this event.

return
the BeanContext associated with this event.

 return (BeanContext)getSource(); 
public synchronized java.beans.beancontext.BeanContextgetPropagatedFrom()
Gets the BeanContext from which this event was propagated.

return
the BeanContext from which this event was propagated

	return propagatedFrom;
    
public synchronized booleanisPropagated()
Reports whether or not this event is propagated from some other BeanContext.

return
true if propagated, false if not

	return propagatedFrom != null;
    
public synchronized voidsetPropagatedFrom(java.beans.beancontext.BeanContext bc)
Sets the BeanContext from which this event was propagated.

param
bc the BeanContext from which this event was propagated

	propagatedFrom = bc;