java.beans.beancontext
Class BeanContextMembershipEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent 
          extended by java.beans.beancontext.BeanContextMembershipEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class BeanContextMembershipEvent
extends BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent

A BeanContextMembershipEvent encapsulates the list of children added to, or removed from, the membership of a particular BeanContext. An instance of this event is fired whenever a successful add(), remove(), retainAll(), removeAll(), or clear() is invoked on a given BeanContext instance. Objects interested in receiving events of this type must implement the BeanContextMembershipListener interface, and must register their intent via the BeanContext's addBeanContextMembershipListener(BeanContextMembershipListener bcml) method.

Since:
1.2
See Also:
BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext , BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent , BeanContextMembershipListener sample code for java.beans.beancontext.BeanContextMembershipListener definition code for java.beans.beancontext.BeanContextMembershipListener , Serialized Form

Field Summary
protected  Collection sample code for java.util.Collection definition code for java.util.Collection children sample code for java.beans.beancontext.BeanContextMembershipEvent.children definition code for java.beans.beancontext.BeanContextMembershipEvent.children
          The list of children affected by this event notification.
 
Fields inherited from class java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent
propagatedFrom sample code for java.beans.beancontext.BeanContextEvent.propagatedFrom definition code for java.beans.beancontext.BeanContextEvent.propagatedFrom
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
BeanContextMembershipEvent sample code for java.beans.beancontext.BeanContextMembershipEvent.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.util.Collection) definition code for java.beans.beancontext.BeanContextMembershipEvent.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.util.Collection) (BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc, Collection sample code for java.util.Collection definition code for java.util.Collection  changes)
          Contruct a BeanContextMembershipEvent
BeanContextMembershipEvent sample code for java.beans.beancontext.BeanContextMembershipEvent.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.lang.Object[]) definition code for java.beans.beancontext.BeanContextMembershipEvent.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.lang.Object[]) (BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc, Object sample code for java.lang.Object definition code for java.lang.Object [] changes)
          Contruct a BeanContextMembershipEvent
 
Method Summary
 boolean contains sample code for java.beans.beancontext.BeanContextMembershipEvent.contains(java.lang.Object) definition code for java.beans.beancontext.BeanContextMembershipEvent.contains(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  child)
          Is the child specified affected by the event?
 Iterator sample code for java.util.Iterator definition code for java.util.Iterator iterator sample code for java.beans.beancontext.BeanContextMembershipEvent.iterator() definition code for java.beans.beancontext.BeanContextMembershipEvent.iterator() ()
          Gets the array of children affected by this event.
 int size sample code for java.beans.beancontext.BeanContextMembershipEvent.size() definition code for java.beans.beancontext.BeanContextMembershipEvent.size() ()
          Gets the number of children affected by the notification.
 Object sample code for java.lang.Object definition code for java.lang.Object [] toArray sample code for java.beans.beancontext.BeanContextMembershipEvent.toArray() definition code for java.beans.beancontext.BeanContextMembershipEvent.toArray() ()
          Gets the array of children affected by this event.
 
Methods inherited from class java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent
getBeanContext sample code for java.beans.beancontext.BeanContextEvent.getBeanContext() definition code for java.beans.beancontext.BeanContextEvent.getBeanContext() , getPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() definition code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() , isPropagated sample code for java.beans.beancontext.BeanContextEvent.isPropagated() definition code for java.beans.beancontext.BeanContextEvent.isPropagated() , setPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext)
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

children sample code for java.beans.beancontext.BeanContextMembershipEvent.children

protected Collection sample code for java.util.Collection definition code for java.util.Collection  children
The list of children affected by this event notification.

Constructor Detail

BeanContextMembershipEvent sample code for java.beans.beancontext.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.util.Collection) definition code for java.beans.beancontext.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.util.Collection)

public BeanContextMembershipEvent(BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc,
                                  Collection sample code for java.util.Collection definition code for java.util.Collection  changes)
Contruct a BeanContextMembershipEvent

Parameters:
bc - The BeanContext source
changes - The Children affected
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if changes is null

BeanContextMembershipEvent sample code for java.beans.beancontext.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.lang.Object[]) definition code for java.beans.beancontext.BeanContextMembershipEvent(java.beans.beancontext.BeanContext, java.lang.Object[])

public BeanContextMembershipEvent(BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc,
                                  Object sample code for java.lang.Object definition code for java.lang.Object [] changes)
Contruct a BeanContextMembershipEvent

Parameters:
bc - The BeanContext source
changes - The Children effected
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if changes associated with this event are null.
Method Detail

size sample code for java.beans.beancontext.BeanContextMembershipEvent.size() definition code for java.beans.beancontext.BeanContextMembershipEvent.size()

public int size()
Gets the number of children affected by the notification.

Returns:
the number of children affected by the notification

contains sample code for java.beans.beancontext.BeanContextMembershipEvent.contains(java.lang.Object) definition code for java.beans.beancontext.BeanContextMembershipEvent.contains(java.lang.Object)

public boolean contains(Object sample code for java.lang.Object definition code for java.lang.Object  child)
Is the child specified affected by the event?

Returns:
true if affected, false if not

toArray sample code for java.beans.beancontext.BeanContextMembershipEvent.toArray() definition code for java.beans.beancontext.BeanContextMembershipEvent.toArray()

public Object sample code for java.lang.Object definition code for java.lang.Object [] toArray()
Gets the array of children affected by this event.

Returns:
the array of children affected

iterator sample code for java.beans.beancontext.BeanContextMembershipEvent.iterator() definition code for java.beans.beancontext.BeanContextMembershipEvent.iterator()

public Iterator sample code for java.util.Iterator definition code for java.util.Iterator  iterator()
Gets the array of children affected by this event.

Returns:
the array of children effected