summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveTextBox.php
diff options
context:
space:
mode:
authorxue <>2006-06-13 02:07:25 +0000
committerxue <>2006-06-13 02:07:25 +0000
commit6e275c7db5cbbf1bf0331bbaf60f3b3ec612c3a7 (patch)
treea7486cb27f2bee3bb492da2a393ae0272119826c /framework/Web/UI/ActiveControls/TActiveTextBox.php
parent1c6f1f79d011579a158e87459040075331b636b7 (diff)
Fixed #224.
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveTextBox.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveTextBox.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveTextBox.php b/framework/Web/UI/ActiveControls/TActiveTextBox.php
index fba36a14..91adf8c7 100644
--- a/framework/Web/UI/ActiveControls/TActiveTextBox.php
+++ b/framework/Web/UI/ActiveControls/TActiveTextBox.php
@@ -15,12 +15,12 @@ class TActiveTextBox extends TTextBox
parent::__construct();
$this->setAdapter(new TActiveControlAdapter($this));
}
-
+
public function getActiveControl()
{
return $this->getAdapter()->getActiveControl();
}
-
+
/**
* Client-side Text property can only be updated after the OnLoad stage.
* @param string text content for the textbox
@@ -29,8 +29,18 @@ class TActiveTextBox extends TTextBox
{
parent::setText($value);
if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData())
- $this->getPage()->getCallbackClient()->setValue($this, $value);
- }
+ $this->getPage()->getCallbackClient()->setValue($this, $value);
+ }
+
+ /**
+ * Gets the name of the javascript class responsible for performing postback for this control.
+ * This method overrides the parent implementation.
+ * @return string the javascript class name
+ */
+ protected function getClientClassName()
+ {
+ return 'Prado.WebUI.TActiveTextBox';
+ }
}
?> \ No newline at end of file