summaryrefslogtreecommitdiff
path: root/framework/interfaces.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/interfaces.php')
-rw-r--r--framework/interfaces.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/framework/interfaces.php b/framework/interfaces.php
index 48164dc0..31bbefd7 100644
--- a/framework/interfaces.php
+++ b/framework/interfaces.php
@@ -283,6 +283,32 @@ interface IBindable
}
/**
+ * IStyleable interface.
+ *
+ * This interface should be implemented by classes that support CSS styles.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @version $Id$
+ * @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();
+}
+
+/**
* IActiveControl interface.
*
* Active controls must implement IActiveControl interface.