From f85d1a050dbacfc71c7c619df7b7eb792c89d8ee Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 26 Nov 2005 17:35:40 +0000 Subject: --- framework/Web/UI/TControl.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index af925d98..a3c031f4 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -370,6 +370,14 @@ class TControl extends TComponent return $this->_uid; } + /** + * Sets input focus to this control. + */ + public function focus() + { + $this->getPage()->setFocus($this); + } + /** * Returns the client ID of the control. * The client ID can be used to uniquely identify -- cgit v1.2.3