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.BeanContextMembershipListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Collection |
children
The children that were added or removed.
|
propagatedFrom
source
Constructor and Description |
---|
BeanContextMembershipEvent(BeanContext context,
Collection children)
Create a new membership event.
|
BeanContextMembershipEvent(BeanContext context,
Object[] children)
Create a new membership event.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom
getSource, toString
protected Collection children
public BeanContextMembershipEvent(BeanContext context, Collection children)
context
- the event source.children
- the children added to or removed from the source.public BeanContextMembershipEvent(BeanContext context, Object[] children)
context
- the event source.children
- the children added to or removed from the source.