final protected function setIndex($index)
    {
        $this->model->leafIndex = $index;
        $this->model->updatePath();
        // Signal to all or any sub leaves that need to recompute their own path now.
        $this->leafPathChanged();
    }
final protected function setIndex($index)
    {
        $this->model->leafIndex = $index;
        $this->model->updatePath();
        // Signal to all or any sub leaves that need to recompute their own path now.
        $this->leafPathChanged();
    }
final protected function setIndex ( $ index ) { $ this -> model -> leafIndex = $ index ; $ this -> model -> updatePath ( ) ; // Signal to all or any sub leaves that need to recompute their own path now. $ this -> leafPathChanged ( ) ; }
Sets a view index for subsequent renders.

@param $index
Sets a view index for subsequent renders .