protected function applyHeaderProperties()
{
if (($style = $this->getViewState('HeaderStyle', null)) !== null) {
$this->_header->getStyle()->mergeWith($style);
}
if ($this->getHeaderTemplate() === null) {
$this->_header->getControls()->clear();
$this->_header->getControls()->add($this->getHeaderText());
}
}