Class AbstractMultipleCompositeComponent

    • Constructor Detail

      • AbstractMultipleCompositeComponent

        public AbstractMultipleCompositeComponent​(InfoModel infoModel)
        Info model constructor.
        Parameters:
        infoModel - The component info model.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
    • Method Detail

      • hasChildComponents

        public boolean hasChildComponents()
        Returns:
        Whether this component has childh components.
      • getChildComponents

        public java.lang.Iterable<Component> getChildComponents()
        Returns:
        An iterable to child components.
      • addComponent

        protected void addComponent​(Component childComponent)
        Adds a child component. This version adds the component to the component set. Any class that overrides this method must call this version.
        Parameters:
        childComponent - The component to add to this component.
        Throws:
        java.lang.IllegalArgumentException - if the component already has a parent or if the component is already a child of this composite component.
      • removeComponent

        protected void removeComponent​(Component childComponent)
        Removes a child component. This version removes the component from the component set. Any class that overrides this method must call this version.
        Parameters:
        childComponent - The component to remove from this component.
        Throws:
        java.lang.IllegalArgumentException - if the component does not recognize this composite component as its parent or the component is not a member of this composite component.