java.beans.beancontext

Class 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.
    Since:
    1.2
    See Also:
    BeanContext, BeanContextEvent, BeanContextMembershipListener, Serialized Form
    • 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
        Throws:
        NullPointerException - if changes is null
      • BeanContextMembershipEvent

        public BeanContextMembershipEvent(BeanContext bc,
                                  Object[] changes)
        Contruct a BeanContextMembershipEvent
        Parameters:
        bc - The BeanContext source
        changes - The Children effected
        Throws:
        NullPointerException - if changes associated with this event are null.
    • Method Detail

      • size

        public int size()
        Gets the number of children affected by the notification.
        Returns:
        the number of children affected by the notification
      • contains

        public boolean contains(Object child)
        Is the child specified affected by the event?
        Returns:
        true if affected, false if not
      • toArray

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

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

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 07/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/beans/beancontext/BeanContextMembershipEvent.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, BeanContextMembershipEvent

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut