/**
  * @inheritDoc
  */
 public function __construct(AbsCmpFields $component, $name)
 {
     if (!preg_match(IfcInputConstants::INPUT_NAME_REGEX, $name)) {
         throw new \InvalidArgumentException('Invalid parameter $name="' . $name . '" in ' . __METHOD__);
     }
     if ($component->getMenuPage()->getInputFieldByName($name)) {
         throw new \InvalidArgumentException('A field with the $name="' . $name . '" already registered');
     }
     parent::__construct($component);
     $this->name = $name;
     $this->id = $name;
     $this->menuPageComponent->getMenuPage()->registerField($this);
 }