protected function getInlineJavaScript()
    {
        $open = $this->open ? 'true' : 'false';
        return sprintf(
            "var %s_obj = new %s('%s', %s);",
            $this->id,
            $this->getJavaScriptClass(),
            $this->id,
            $open
        );
    }