/** * Copies the fields in a new style to this style. * If a style field is set in the new style, the corresponding field * in this style will be overwritten. * @param TStyle the new style */ public function copyFrom($style) { parent::copyFrom($style); if ($style instanceof TWizardNavigationButtonStyle) { if ($this->_imageUrl === null && $style->_imageUrl !== null) { $this->_imageUrl = $style->_imageUrl; } if ($this->_buttonText === null && $style->_buttonText !== null) { $this->_buttonText = $style->_buttonText; } if ($this->_buttonType === null && $style->_buttonType !== null) { $this->_buttonType = $style->_buttonType; } } }
/** * Copies the fields in a new style to this style. * If a style field is set in the new style, the corresponding field * in this style will be overwritten. * @param TStyle the new style */ public function copyFrom($style) { parent::copyFrom($style); if ($style instanceof TTableItemStyle) { if ($this->_verticalAlign === null && $style->_verticalAlign !== null) { $this->_verticalAlign = $style->_verticalAlign; } if ($this->_horizontalAlign === null && $style->_horizontalAlign !== null) { $this->_horizontalAlign = $style->_horizontalAlign; } if ($this->_wrap === null && $style->_wrap !== null) { $this->_wrap = $style->_wrap; } } }
/** * Copies the fields in a new style to this style. * If a style field is set in the new style, the corresponding field * in this style will be overwritten. * @param TStyle the new style */ public function copyFrom($style) { parent::copyFrom($style); if ($style instanceof TPanelStyle) { if ($style->_backImageUrl !== null) { $this->_backImageUrl = $style->_backImageUrl; } if ($style->_direction !== null) { $this->_direction = $style->_direction; } if ($style->_horizontalAlign !== null) { $this->_horizontalAlign = $style->_horizontalAlign; } if ($style->_scrollBars !== null) { $this->_scrollBars = $style->_scrollBars; } if ($style->_wrap !== null) { $this->_wrap = $style->_wrap; } } }
/** * Copies the fields in a new style to this style. * If a style field is set in the new style, the corresponding field * in this style will be overwritten. * @param TStyle the new style */ public function copyFrom($style) { parent::copyFrom($style); if ($style instanceof TTableStyle) { if ($style->_backImageUrl !== null) { $this->_backImageUrl = $style->_backImageUrl; } if ($style->_horizontalAlign !== null) { $this->_horizontalAlign = $style->_horizontalAlign; } if ($style->_cellPadding !== null) { $this->_cellPadding = $style->_cellPadding; } if ($style->_cellSpacing !== null) { $this->_cellSpacing = $style->_cellSpacing; } if ($style->_gridLines !== null) { $this->_gridLines = $style->_gridLines; } if ($style->_borderCollapse !== null) { $this->_borderCollapse = $style->_borderCollapse; } } }