|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
java.beans.beancontext.BeanContextEvent
java.beans.beancontext.BeanContextMembershipEvent
public class 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.
BeanContextMembershipListener
,
Serialized FormField Summary | |
---|---|
protected Collection |
children
The children that were added or removed. |
Fields inherited from class java.beans.beancontext.BeanContextEvent |
---|
propagatedFrom |
Fields inherited from class java.util.EventObject |
---|
source |
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. |
Methods inherited from class java.beans.beancontext.BeanContextEvent |
---|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Collection children
Constructor Detail |
---|
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.Method Detail |
---|
public int size()
public Iterator iterator()
public Object[] toArray()
public boolean contains(Object child)
Object
is one of the children added or removed.
child
- the child to check.
Object
is added or removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |