Setter for componentStyles.

@param mixed $name
Name.
@param \ChapterThree\AppleNewsAPI\Document\Styles\ComponentStyle $component_style
ComponentStyle.

@return $this
547984
public function addComponentStyle($name, ComponentStyle $component_style) {
    $this->componentStyles[(string) $name] = $component_style;
    return $this;
  }
1185349
function( name )
		{
			this.setStyle( name, '' );
			if ( this.$.style.removeAttribute )
				this.$.style.removeAttribute( CKEDITOR.tools.cssStyleToDomStyle( name ) );

			if ( !this.$.style.cssText )
				this.removeAttribute( 'style' );
		}
1125084
protected function loadComponent($bindings, $name)
    {
        $aliases = array_values($bindings);
        $abstracts = array_keys($bindings);
        
        foreach ($abstracts as $index => $abstract) {
            $this->app->singleton(
                $abstract,
                $this->{"load{$name}Component"}()
            );
            
            $this->app->alias(
                $abstract,
                $aliases[$index]
            );
        }
    }
1341725
public function setStyle($cssStyle) {
		if (!JString::startsWith($cssStyle, "panel"))
			$cssStyle="panel".$cssStyle;
		return $this->addToPropertyCtrl("class", $cssStyle, CssRef::Styles("panel"));
	}
73966
public function setComponentType(ComponentTypeInterface $componentType)
    {
        $this->componentTypeId = $componentType->getId();

        return parent::setComponentType($componentType);
    }
1213787
public static function setStyleDefinition($name, TableStyle $style)
    {
        if (!self::$styles) {
            self::$styles = self::initStyles();
        }

        self::$styles[$name] = $style;
    }
1072151
public function setComponents($components)
	{
	    if ($components) foreach ($components as $k => $v) {
	        $v = static::formatDefinition($k, $v);
	        if (is_numeric($k)) {
	            $k = static::formatName($v);
	        }
	        $this->set($k, $v);
	    }
	}
544430
public function enableComponent($name)
    {
        if (!array_key_exists($name, $this->components)) {
            throw new NotValidCompoenentException($name . ' component is not valid');
        }

        $this->components[$name] = true;

        return $this;
    }
1255886
public function findOrFail($name)
    {
        $component = $this->find($name);

        if ($component !== null) {
            return $component;
        }

        throw new ComponentNotFoundException("Component [{$name}] does not exist!");
    }
1118548
public function getComponentType($name)
    {
        $types = $this->getComponentTypes();
        return empty($types[$name]) ? '' : $types[$name];
    }
140613
public function findComponentByName($name)
    {
        if (isset($this->page->components[$name])) {
            return $this->page->components[$name];
        }

        if (isset($this->layout->components[$name])) {
            return $this->layout->components[$name];
        }

        $partialComponent = $this->partialStack->getComponent($name);
        if ($partialComponent !== null) {
            return $partialComponent;
        }

        return null;
    }
1104164
function setElementStyle($elementName, $styleName = null)
    {
        if (is_array($elementName)) {
            $this->_elementStyles = array_merge($this->_elementStyles, $elementName);
        } else {
            $this->_elementStyles[$elementName] = $styleName;
        }
    }
91002
public function set_name( $name )
    {
        foreach($this->components as $c)
        {
            $c->name_template = str_replace('{{parent_name}}', $this->get_name(), $c->composite_name_template);
        }
    }
613927
public function remove($component, $name)
    {
        $this->load();

        $propertyKey = sprintf('%s__%s', $component, $name);

        if (isset($this->properties[$propertyKey])) {
            $this->entityManager->remove($this->properties[$propertyKey]);
            unset($this->properties[$propertyKey]);
        }

        return $this;
    }
173205
public function setFacet($name)
    {
        if ($this->getSearchParam('facet') === null) {
            $this->setSearchParams('facet', 'true');
        }

        $this->setSearchParams('facet.field', $name);

        return $this;
    }
1042156
public function style($name, $color = null, $background = null, $format = null, $allowInheritance = null) {
        $style = new ConsoleStyle($name, $color, $background, $format, $allowInheritance);
        $this->addStyle($style);

        return $style;
    }
599140
protected function getComponent(string $name)
    {
        if (!is_object($this->components[$name])) {
            $this->components[$name] = $this->createComponent($name);
        }

        return $this->components[$name];
    }