public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $div_tag = new SwatHtmlTag('div');
        $div_tag->class = 'swat-textarea-container';
        $div_tag->open();

        $textarea_tag = $this->getTextareaTag();
        $textarea_tag->display();

        $div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }