public function addEntrySubmit($code, $controlIds = array(), $priority = 5, $inline = false) {
        $entrySubmit = new EntrySubmit();
        $entrySubmit->setCode($code)
                    ->setControlIds($controlIds)
                    ->setPriority($priority)
                    ->setInline($inline);
        $this->builder->addEvent($entrySubmit);
        return $this;
    }