protected function calcTotalWidth() {


        $totalWidth = 0;

        // go through all the widths
        for ($w=0; $w<count($this->columnDefinitions); ++$w) {
            
            // add the column's width
            $totalWidth += $this->columnDefinitions[$w]->getWidth();
        }

        // return the total
        return $totalWidth;

    }