Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans.beancontext

Class BeanContextMembershipEvent

java.lang.Object
|
+--java.util.EventObject
   |
   +--java.beans.beancontext.BeanContextEvent
      |
      +--java.beans.beancontext.BeanContextMembershipEvent


public class BeanContextMembershipEvent

extends BeanContextEvent

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:

Field Summary

java.util.Collectionchildren

The children that were added or removed.

Constructor Summary

BeanContextMembershipEvent(java.beans.beancontext.BeanContext context, java.util.Collection children)

Create a new membership event.
BeanContextMembershipEvent(java.beans.beancontext.BeanContext context, java.lang.Object[] children)

Create a new membership event.

Method Summary

booleancontains(java.lang.Object child)

Tell whether the Object is one of the children added or removed.
java.util.Iteratoriterator()

An iterator that will step through all the children.
intsize()

The number of children removed or added.
java.lang.Object[]toArray()

An array of the children.

Field Details

children

protected Collection children

The children that were added or removed.


Constructor Details

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:


Method Details

contains

public boolean contains(java.lang.Object child)

Tell whether the Object is one of the children added or removed.

Parameters:

Returns:


iterator

public Iterator iterator()

An iterator that will step through all the children.

Returns:


size

public int size()

The number of children removed or added.

Returns:


toArray

public Object[] toArray()

An array of the children.

Returns: