public function setStateListener($event, $listener)
    {
        $js = sprintf(
            'uLogin.setStateListener("%s", "%s", %s);',
            $this->id,
            $event,
            $listener
        );

        $this->getView()->registerJs($js);
        return $this;
    }