protected function isShown($name, $isFirst, $isMiddle, $isLast)
    {
        if (!$this->{"Show{$name}"} || $this->{"Show{$name}"} == self::SHOW_NONE) {
            return false;
        }
        
        return (
            ($this->{"Show{$name}"} == self::SHOW_FIRST && $isFirst) ||
            ($this->{"Show{$name}"} == self::SHOW_LAST && $isLast) ||
            ($this->{"Show{$name}"} == self::SHOW_ALL)
        );
    }