java.beans.beancontext
Class BeanContextMembershipEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.beans.beancontext.BeanContextEvent
|
+--java.beans.beancontext.BeanContextMembershipEvent
Event fired when children are added to or removed from a BeanContext.
Whether they were added or removed depends entirely on which method
of the listener interface was called.
Since:Author:See Also:
children
protected Collection children The children that were added or removed.
BeanContextMembershipEvent
public BeanContextMembershipEvent(java.beans.beancontext.BeanContext context, java.lang.Object[] children) Create a new membership event.
Parameters:
BeanContextMembershipEvent
public BeanContextMembershipEvent(java.beans.beancontext.BeanContext context, java.util.Collection children) Create a new membership event.
Parameters:
contains
public boolean contains(java.lang.Object child) Tell whether the Object is one of the children added or removed.
Parameters:
Returns:
- whether the
Object is added or removed.
iterator
public Iterator iterator() An iterator that will step through all the children.
Returns:
- an iterator over all the children.
size
public int size() The number of children removed or added.
Returns:
- the number of children removed or added.
toArray
public Object[] toArray() An array of the children.
Returns:
- an array of the children.
BeanContext. Whether they were added or removed depends entirely on which method of the listener interface was called.