Implementation Component::setTemplate()