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

        SwatWidget::display();

        $control_div = $this->getControlDivTag();
        $span = $this->getSpanTag();
        $input = $this->getInputTag();
        $container_div = $this->getContainerDivTag();
        $animate_div = $this->getAnimateDivTag();
        $padding_div = $this->getPaddingDivTag();

        $control_div->open();

        $span->display();
        $input->display();

        $container_div->open();
        $animate_div->open();
        $padding_div->open();
        $this->displayChildren();
        $padding_div->close();
        $animate_div->close();
        $container_div->close();

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

        $control_div->close();
    }