protected function createNavigation()
{
$this->_navigation = new TPanel();
$this->getControls()->add($this->_navigation);
$controls = $this->_navigation->getControls();
foreach ($this->getWizardSteps() as $step) {
if ($step instanceof TTemplatedWizardStep) {
$step->instantiateNavigationTemplate();
if (($panel = $step->getNavigationContainer()) !== null) {
$controls->add($panel);
}
}
}
$this->_startNavigation = $this->createStartNavigation();
$controls->add($this->_startNavigation);
$this->_stepNavigation = $this->createStepNavigation();
$controls->add($this->_stepNavigation);
$this->_finishNavigation = $this->createFinishNavigation();
$controls->add($this->_finishNavigation);
}