summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-01-11 21:23:44 +0000
committerxue <>2006-01-11 21:23:44 +0000
commita06e326f247bff617191b1c87a7b004414495275 (patch)
treeec4348ba92fef943e9f7171598f5f14f92dbf14d /framework
parentc2981557f2112fbf93267058ad7f9c361bf2f180 (diff)
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/TListControl.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php
index e1384d54..f5619b45 100644
--- a/framework/Web/UI/WebControls/TListControl.php
+++ b/framework/Web/UI/WebControls/TListControl.php
@@ -441,6 +441,22 @@ abstract class TListControl extends TDataBoundControl
}
/**
+ * @return string selected value
+ */
+ public function getText()
+ {
+ return $this->getSelectedValue();
+ }
+
+ /**
+ * @param string value to be selected
+ */
+ public function setText($value)
+ {
+ $this->setSelectedValue($value);
+ }
+
+ /**
* Clears all existing selections.
*/
public function clearSelection()
@@ -480,6 +496,17 @@ abstract class TListControl extends TDataBoundControl
}
/**
+ * Raises TextChanged event when selection is changed.
+ * This method is invoked when the list control has its selection changed
+ * by end-users.
+ * @param TEventParameter event parameter
+ */
+ public function onTextChanged($param)
+ {
+ $this->raiseEvent('TextChanged',$this,$param);
+ }
+
+ /**
* Renders body content of the list control.
* This method renders items contained in the list control as the body content.
* @param THtmlWriter writer