From a06e326f247bff617191b1c87a7b004414495275 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 11 Jan 2006 21:23:44 +0000 Subject: --- framework/Web/UI/WebControls/TListControl.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'framework/Web/UI/WebControls/TListControl.php') 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 @@ -440,6 +440,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. */ @@ -479,6 +495,17 @@ abstract class TListControl extends TDataBoundControl $this->raiseEvent('SelectedIndexChanged',$this,$param); } + /** + * 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. -- cgit v1.2.3