TPanelStyle represents the CSS style specific for panel HTML tag.
С версии: 3.0
Автор: Qiang Xue (qiang.xue@gmail.com)
Наследование: extends TStyle
Пример #1
0
 /**
  * Merges the style with a new one.
  * If a style field is not set in this style, it will be overwritten by
  * the new one.
  * @param TStyle the new style
  */
 public function mergeWith($style)
 {
     parent::mergeWith($style);
     if ($style instanceof TDataGridPagerStyle) {
         if ($this->_visible === null) {
             $this->_visible = $style->_visible;
         }
         if ($this->_position === null) {
             $this->_position = $style->_position;
         }
         if ($this->_buttonCount === null) {
             $this->_buttonCount = $style->_buttonCount;
         }
         if ($this->_prevText === null) {
             $this->_prevText = $style->_prevText;
         }
         if ($this->_nextText === null) {
             $this->_nextText = $style->_nextText;
         }
         if ($this->_mode === null) {
             $this->_mode = $style->_mode;
         }
         if ($this->_buttonType === null) {
             $this->_buttonType = $style->_buttonType;
         }
     }
 }