summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/ICallbackEventHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/ICallbackEventHandler.php')
-rw-r--r--framework/Web/UI/ActiveControls/ICallbackEventHandler.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/ICallbackEventHandler.php b/framework/Web/UI/ActiveControls/ICallbackEventHandler.php
new file mode 100644
index 00000000..2abe1225
--- /dev/null
+++ b/framework/Web/UI/ActiveControls/ICallbackEventHandler.php
@@ -0,0 +1,33 @@
+<?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 Prado\Web\UI\ActiveControls
+ */
+
+namespace Prado\Web\UI\ActiveControls;
+
+/**
+ * ICallbackEventHandler interface.
+ *
+ * If a control wants to respond to callback event, it must implement this
+ * interface.
+ *
+ * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
+ * @package Prado\Web\UI\ActiveControls
+ * @since 3.1
+ */
+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