public function setButtonType($type, $submitFormOnClick = false)
    {
        $this->model->type = $type;

        if ($submitFormOnClick) {
            $this->model->addCssClassNames("submit-on-click");
        }
    }