public function isVisible()
    {
        if ($this->parent instanceof SwatUIObject) {
            return $this->parent->isVisible() && $this->visible;
        } else {
            return $this->visible;
        }
    }