summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:05:20 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:05:20 +0100
commit3b73b49c862563f92b678db4791a3fb82a9bd886 (patch)
treeb8483f54b9613789376db263ac3d77da27a0a6d2 /framework/Web/UI
parent5283d8624a974e73019e1dc1626de2bc3b1a9ff3 (diff)
TJuiResizable events
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/JuiControls/TJuiResizable.php48
1 files changed, 47 insertions, 1 deletions
diff --git a/framework/Web/UI/JuiControls/TJuiResizable.php b/framework/Web/UI/JuiControls/TJuiResizable.php
index e5b3b531..5e1f8d31 100644
--- a/framework/Web/UI/JuiControls/TJuiResizable.php
+++ b/framework/Web/UI/JuiControls/TJuiResizable.php
@@ -37,7 +37,7 @@ Prado::using('System.Web.UI.ActiveControls.TActivePanel');
* @package System.Web.UI.JuiControls
* @since 3.3
*/
-class TJuiResizable extends TActivePanel implements IJuiOptions
+class TJuiResizable extends TActivePanel implements IJuiOptions, ICallbackEventHandler
{
protected $_options;
@@ -104,4 +104,50 @@ class TJuiResizable extends TActivePanel implements IJuiOptions
$code="jQuery('#".$this->getClientId()."').resizable(".$options.");";
$cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
}
+
+ /**
+ * Raises callback event. This method is required by the {@link ICallbackEventHandler}
+ * interface.
+ * @param TCallbackEventParameter the parameter associated with the callback event
+ */
+ public function raiseCallbackEvent($param)
+ {
+ $this->getOptions()->raiseCallbackEvent($param);
+ }
+
+ /**
+ * Raises the OnCreate event
+ * @param object $params event parameters
+ */
+ public function onCreate ($params)
+ {
+ $this->raiseEvent('OnCreate', $this, $params);
+ }
+
+ /**
+ * Raises the OnResize event
+ * @param object $params event parameters
+ */
+ public function onResize ($params)
+ {
+ $this->raiseEvent('OnResize', $this, $params);
+ }
+
+ /**
+ * Raises the OnStart event
+ * @param object $params event parameters
+ */
+ public function onStart ($params)
+ {
+ $this->raiseEvent('OnStart', $this, $params);
+ }
+
+ /**
+ * Raises the OnStop event
+ * @param object $params event parameters
+ */
+ public function onStop ($params)
+ {
+ $this->raiseEvent('OnStop', $this, $params);
+ }
}