public function display()
    {
        if ($this->content === null) {
            $this->openInternal(true);
        } else {
            $this->openInternal(false);
            $this->displayContent();
            $this->close();
        }
    }