diff options
author | wei <> | 2006-08-29 12:06:35 +0000 |
---|---|---|
committer | wei <> | 2006-08-29 12:06:35 +0000 |
commit | f0a6fad58f8eae14554443081ffb166aaf71762a (patch) | |
tree | a1a234da831f11c190a0cef98d01c6f0dacdce1c /framework/Web/UI/ActiveControls/TActiveTextBox.php | |
parent | c1937cccd0985e86e247287faa9ac60870feecd7 (diff) |
fixed autocomplete problem and add TInPlcaeTextbox
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveTextBox.php')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveTextBox.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveTextBox.php b/framework/Web/UI/ActiveControls/TActiveTextBox.php index 20358a36..c5f0f152 100644 --- a/framework/Web/UI/ActiveControls/TActiveTextBox.php +++ b/framework/Web/UI/ActiveControls/TActiveTextBox.php @@ -85,6 +85,31 @@ class TActiveTextBox extends TTextBox implements ICallbackEventHandler, IActiveC }
/**
+ * Loads user input data.
+ * This method is primarly used by framework developers.
+ * @param string the key that can be used to retrieve data from the input data collection
+ * @param array the input data collection
+ * @return boolean whether the data of the component has been changed
+ */
+ public function loadPostData($key,$values)
+ {
+ $value=$values[$key];
+ if($this->getAutoTrim())
+ $value=trim($value);
+ if(!$this->getReadOnly() && $this->getText()!==$value)
+ {
+ $enabled = $this->getActiveControl()->getEnableUpdate();
+ $this->getActiveControl()->setEnableUpdate(false);
+ $this->setText($value);
+ $this->getActiveControl()->setEnableUpdate($enabled);
+ return true;
+ }
+ else
+ return false;
+ }
+
+
+ /**
* Renders the javascript for textbox.
*/
protected function renderClientControlScript($writer)
|