站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class BeanContextMembershipEvent - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

java.beans.beancontext
Class BeanContextMembershipEvent

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

public class BeanContextMembershipEvent
extends BeanContextEvent

Compliant BeanContexts fire events on this interface when state maintained by the BeanContext, for some or all of its "children", changes, to all BeanContextListeners that register themselves with a particular BeanContext.

Since:
1.2
See Also:
BeanContext, BeanContextEvent, java.beans.beancontext.BeanContextListener, Serialized Form

Field Summary
protected  Collection children
           
 
Fields inherited from class java.beans.beancontext.BeanContextEvent
propagatedFrom
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BeanContextMembershipEvent(BeanContext bc, Collection changes)
          Contruct a BeanContextMembershipEvent
BeanContextMembershipEvent(BeanContext bc, Object[] changes)
          Contruct a BeanContextMembershipEvent
 
Method Summary
 boolean contains(Object child)
           
 Iterator iterator()
           
 int size()
          how many children are effected by the notification
 Object[] toArray()
           
 
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

children

protected Collection children
Constructor Detail

BeanContextMembershipEvent

public BeanContextMembershipEvent(BeanContext bc,
                                  Collection changes)
Contruct a BeanContextMembershipEvent
Parameters:
bc - The BeanContext source
changes - The Children effected

BeanContextMembershipEvent

public BeanContextMembershipEvent(BeanContext bc,
                                  Object[] changes)
Contruct a BeanContextMembershipEvent
Parameters:
bc - The BeanContext source
changes - The Children effected
Method Detail

size

public int size()
how many children are effected by the notification

contains

public boolean contains(Object child)
Returns:
is the child specified effected by the event?

toArray

public Object[] toArray()
Returns:
the array of children effected

iterator

public Iterator iterator()
Returns:
the array of children effected

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.