Short description of method addComponent

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  Component component
@return void
775980
public function addComponent( common_configuration_Component $component)
    {
        
        $components = $this->getComponents();
        
        // Search for a similar...
        foreach ($components as $c){
        	if ($c === $component){
        		// Already stored.
        		return;
        	}
        }
        
        // Not stored yet.
        $components[] = $component;
        $this->setComponents($components);
        
        
    }
460781
public function set_component($component) {
        $this->areacache = null;
        list($type, $name) = core_component::normalize_component($component);
        $this->component = $type.'_'.$name;
    }
1208516
public function addComponent(Doozr_Form_Service_Component_Interface_Html $element)
    {
        $index               = $this->addChild($element);
        $this->index[$index] = self::COMPONENT;

        (!isset($this->indexReverse[self::COMPONENT])) ? $this->indexReverse[self::COMPONENT] = [] : null;
        $this->indexReverse[self::COMPONENT][]                                                = $index;

        return $index;
    }
1326148
public function addComponent(ComponentInterface $component)
    {
        $this->getComponents()->push($component);
        $component->attachTo($this);
        return $this;
    }
314571
def setComponents(self, components):
        
        layout = self.layout()
        for comp in components:
            attrWidget = ComponentAttributerChecker(comp)
            layout.addWidget(attrWidget)
464403
function loadComponent(component) {
        if (component.initialize) {
            component.initialize(app);
        }
        if (component.beforeDispatchCallback) {
            beforeDispatchCallbacks.push(component.beforeDispatchCallback);
        }
        S.defineProperties(app.request, component.requestMethods, true);
        S.defineProperties(app.response, component.responseMethods, true);
        S.defineProperties(Helper.prototype, component.helperMethods, true);
    }
98891
private void addToTail(final WComponent component) {
		WContainer tail = (WContainer) getDecoratedLabel().getTail();
		if (null != tail) { // bloody well better not be...
			tail.add(component);
		}
	}
879213
function (component) {
    var callbacks = this.callbacks;
    if (component.beforeStep) callbacks.beforeStep.push(component);
    if (component.step)       callbacks.step.push(component);
    if (component.afterStep)  callbacks.afterStep.push(component);
  }
97922
def add_components(self, components):
        
        if components:
            for component in components:
                self._components[component["name"]] = (
                    component["factory"],
                    component.get("properties", {}),
                )
945814
public void addComponent( BshClassPath bcp ) {
        if (bcp == null)
            return;
        if ( compPaths == null )
            compPaths = new ArrayList();
        compPaths.add( bcp );
        bcp.addListener( this );
    }
656490
public void addComponent (BaseComponent comp)
    {
        if (comp instanceof InitComponent) {
            if (_initers == null) {
                throw new IllegalStateException("Too late to register InitComponent.");
            }
            _initers.add((InitComponent)comp);
        }
        if (comp instanceof ShutdownComponent) {
            if (_downers == null) {
                throw new IllegalStateException("Too late to register ShutdownComponent.");
            }
            _downers.add((ShutdownComponent)comp);
        }
    }
351075
private function update_component( ValueComponentInterface $component )
    {
        $component->value = $this->final_instance[$component->name];
        
        // Skip if this field is disabled
        if( $this->is_disabled($component) )
        {
            return;
        }

        // Apply user-defined filter
        $this->filter( $component );
        
        // Validate value
        $this->validate( $component );
    }
526139
public void registerComponent(BaseUIComponent component) {
        if (registeredComponents == null) {
            registeredComponents = new ArrayList<>();
        }

        registeredComponents.add(component);
        component.setAttribute(Constants.ATTR_CONTAINER, this);
        component.setAttribute(Constants.ATTR_VISIBLE, component.isVisible());
        component.setVisible(isVisible());
    }
386203
protected function _includeComponents(): void
    {
        // for now, we just include all components
        $appComponentFolder = WWW_ROOT . 'js/app/components/';
        $folder = new Folder($appComponentFolder);
        $files = $folder->find('.*\.js');
        if (!empty($files)) {
            foreach ($files as $file) {
                $this->_dependencies[] = 'app/components/' . $file;
            }
        }

        // Add Plugin Components
        foreach (Plugin::loaded() as $pluginName) {
            $pluginJsComponentsFolder = Plugin::path($pluginName) . '/webroot/js/app/components/';
            if (is_dir($pluginJsComponentsFolder)) {
                $folder = new Folder($pluginJsComponentsFolder);
                $files = $folder->find('.*\.js');
                foreach ($files as $file) {
                    $this->_dependencies[] = '/' . Inflector::underscore($pluginName) . '/js/app/components/' . $file;
                }
            }
        }
    }
1014335
protected function addToComponentTree($componentId, array $componentPath, array &$tree)
    {
        // If the component has to be placed in a subpath
        if (count($componentPath)) {
            $subpath = array_shift($componentPath);
            if (empty($tree[$subpath])) {
                $tree[$subpath] = [];
            }
            $this->addToComponentTree($componentId, $componentPath, $tree[$subpath]);

            return;
        }

        $tree[] = $componentId;
    }
769711
protected void addComponentMapping(Class<? extends IComponent> klazz, IComponent component) {
        components.put(klazz, component);
    }
1349031
@Override
  public void add(int index, Object element) {    
    element = mapIfNumber(element);
    addComponent(index, element, ComponentEquality.EQUAL);
  }