summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControl.php
diff options
context:
space:
mode:
authorxue <>2005-11-26 17:35:40 +0000
committerxue <>2005-11-26 17:35:40 +0000
commitf85d1a050dbacfc71c7c619df7b7eb792c89d8ee (patch)
treeed60f90732748e6f82c2f112e7dc7d156b79be87 /framework/Web/UI/TControl.php
parent33edf4e00ca2411a7849e6b479048c25c4a3ce6c (diff)
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r--framework/Web/UI/TControl.php8
1 files changed, 8 insertions, 0 deletions
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
@@ -371,6 +371,14 @@ class TControl extends TComponent
}
/**
+ * 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
* the control in client-side scripts (such as JavaScript).