This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.beans.beancontext
class BeanContextMembershipEvent

java.lang.Object extended by java.util.EventObject extended by java.beans.beancontext.BeanContextEvent extended by java.beans.beancontext.BeanContextMembershipEvent
All Implemented Interfaces:
Serializable

public class BeanContextMembershipEvent
extends BeanContextEvent

A BeanContextMembershipEvent encapsulates the list of children added to, or removed from, the membership of a particular BeanContext. An instance of this event is fired whenever a successful add(), remove(), retainAll(), removeAll(), or clear() is invoked on a given BeanContext instance. Objects interested in receiving events of this type must implement the BeanContextMembershipListener interface, and must register their intent via the BeanContext's addBeanContextMembershipListener(BeanContextMembershipListener bcml) method.


Field Summary
protected Collection children
          The list of children affected by this event notification.
 
Fields inherited from class java.beans.beancontext.BeanContextEvent
propagatedFrom
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary

          Contruct a BeanContextMembershipEvent

          Contruct a BeanContextMembershipEvent
 
Method Summary
 boolean

          Is the child specified affected by the event?
 Iterator

          Gets the array of children affected by this event.
 int

          Gets the number of children affected by the notification.
 Object[]

          Gets the array of children affected by this event.
 
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, toString, wait, wait, wait
 

Field Detail

children

protected Collection children
The list of children affected by this event notification.
Constructor Detail

BeanContextMembershipEvent

public BeanContextMembershipEvent(BeanContext bc,
                                  Collection changes)
Contruct a BeanContextMembershipEvent

Parameters:
bc - The BeanContext source
changes - The Children affected

BeanContextMembershipEvent

public BeanContextMembershipEvent(BeanContext bc,
                                  Object[] changes)
Contruct a BeanContextMembershipEvent

Parameters:
bc - The BeanContext source
changes - The Children effected
Method Detail

contains

public boolean contains(Object child)
Is the child specified affected by the event?

Parameters:
child
Returns:
true if affected, false if not

iterator

public Iterator iterator()
Gets the array of children affected by this event.

Returns:
the array of children effected

size

public int size()
Gets the number of children affected by the notification.

Returns:
the number of children affected by the notification

toArray

public Object[] toArray()
Gets the array of children affected by this event.

Returns:
the array of children affected


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.