From 62cdfb712d0132c8e4463c25ad3291e84cfbce51 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 12 Mar 2008 18:59:53 +0000 Subject: Added THtmlElement. --- framework/Web/UI/WebControls/THtmlElement.php | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 framework/Web/UI/WebControls/THtmlElement.php (limited to 'framework/Web/UI/WebControls') diff --git a/framework/Web/UI/WebControls/THtmlElement.php b/framework/Web/UI/WebControls/THtmlElement.php new file mode 100644 index 00000000..a9b4d786 --- /dev/null +++ b/framework/Web/UI/WebControls/THtmlElement.php @@ -0,0 +1,46 @@ + + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2008 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Id$ + * @package System.Web.UI.WebControls + */ + +Prado::using('System.Web.UI.WebControls.TWebControl'); + +/** + * THtmlElement class. + * + * THtmlElement represents a generic HTML element whose tag name is specified + * via {@link setTagName TagName} property. Because THtmlElement extends from + * {@link TWebControl}, it enjoys all its functionalities. + * + * @author Qiang Xue + * @version $Id$ + * @package System.Web.UI.WebControls + * @since 3.1.2 + */ +class THtmlElement extends TWebControl +{ + private $_tagName='span'; + + /** + * @return string the tag name of this control. Defaults to 'span'. + */ + public function getTagName() + { + return $this->_tagName; + } + + /** + * @param string the tag name of this control. + */ + public function setTagName($value) + { + $this->_tagName=$value; + } +} \ No newline at end of file -- cgit v1.2.3