summaryrefslogtreecommitdiff
path: root/framework/IStyleable.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/IStyleable.php')
-rw-r--r--framework/IStyleable.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/framework/IStyleable.php b/framework/IStyleable.php
new file mode 100644
index 00000000..92cc13ad
--- /dev/null
+++ b/framework/IStyleable.php
@@ -0,0 +1,35 @@
+<?php
+/**
+ * Core interfaces essential for TApplication class.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @package System
+ */
+
+/**
+ * IStyleable interface.
+ *
+ * This interface should be implemented by classes that support CSS styles.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @package System
+ * @since 3.1.0
+ */
+interface IStyleable
+{
+ /**
+ * @return boolean whether the object has defined any style information
+ */
+ public function getHasStyle();
+ /**
+ * @return TStyle the object representing the css style of the object
+ */
+ public function getStyle();
+ /**
+ * Removes all styles associated with the object
+ */
+ public function clearStyle();
+} \ No newline at end of file