From 10b65d6d03ee0afc1ec1a50f320af42a79f5492b Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 30 Apr 2006 00:15:23 +0000 Subject: Adding Callback foundations. --- framework/interfaces.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'framework/interfaces.php') diff --git a/framework/interfaces.php b/framework/interfaces.php index 2a407696..eb9084b3 100644 --- a/framework/interfaces.php +++ b/framework/interfaces.php @@ -280,4 +280,41 @@ interface IBindable public function dataBind(); } +/** + * IActiveControl interface. + * + * Active controls must implement IActiveControl interface. + * + * @author Wei Zhuo + * @version $Revision: $ $Date: $ + * @package System + * @since 3.0 + */ +interface IActiveControl +{ + +} + +/** + * ICallbackEventHandler interface. + * + * If a control wants to respond to callback event, it must implement this + * interface. + * + * @author Wei Zhuo + * @version $Revision: $ $Date: $ + * @package System + * @since 3.0 + */ +interface ICallbackEventHandler +{ + /** + * Raises callback event. The implementation of this function should raise + * appropriate event(s) (e.g. OnClick, OnCommand) indicating the component + * is responsible for the callback event. + * @param TCallbackEventParameter the parameter associated with the callback event + */ + public function raiseCallbackEvent($eventArgument); +} + ?> \ No newline at end of file -- cgit v1.2.3