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

        SwatWidget::display();

        $this->addHiddenField(self::PROCESS_FIELD, $this->id);

        $form_tag = $this->getFormTag();

        $form_tag->open();
        $this->displayChildren();
        $this->displayHiddenFields();
        $form_tag->close();

        if ($this->connection_close_uri != '') {
            $yui = new SwatYUI(array('event'));
            $this->html_head_entry_set->addEntrySet(
                $yui->getHtmlHeadEntrySet()
            );
        }

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