java.beans.beancontext
public class BeanContextMembershipEvent extends BeanContextEvent
BeanContext
.
Whether they were added or removed depends entirely on which method
of the listener interface was called.
Since: 1.2
See Also: BeanContextMembershipListener
Field Summary | |
---|---|
protected Collection | children
The children that were added or removed. |
Constructor Summary | |
---|---|
BeanContextMembershipEvent(BeanContext context, Collection children)
Create a new membership event. | |
BeanContextMembershipEvent(BeanContext context, Object[] children)
Create a new membership event. |
Method Summary | |
---|---|
boolean | contains(Object child)
Tell whether the Object is one of the children added or removed. |
Iterator | iterator()
An iterator that will step through all the children. |
int | size()
The number of children removed or added. |
Object[] | toArray()
An array of the children. |
Parameters: context the event source. children the children added to or removed from the source.
Parameters: context the event source. children the children added to or removed from the source.
Object
is one of the children added or removed.Parameters: child the child to check.
Returns: whether the Object
is added or removed.
Returns: an iterator over all the children.
Returns: the number of children removed or added.
Returns: an array of the children.