From 0aaa8b5ef02479653c0a532d9249b423ef34c7ca Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 5 Feb 2007 02:24:34 +0000 Subject: Added IStyleable and fixed style rendering issue about TDataList. --- framework/interfaces.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'framework/interfaces.php') diff --git a/framework/interfaces.php b/framework/interfaces.php index 48164dc0..31bbefd7 100644 --- a/framework/interfaces.php +++ b/framework/interfaces.php @@ -282,6 +282,32 @@ interface IBindable public function dataBind(); } +/** + * IStyleable interface. + * + * This interface should be implemented by classes that support CSS styles. + * + * @author Qiang Xue + * @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. * -- cgit v1.2.3