From 418baf36d477bcbdd6fb4eaf4037ea6a2d93f21c Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 4 Dec 2005 17:51:05 +0000 Subject: --- framework/Web/UI/TPage.php | 50 +++++++++++++++++----------------------------- 1 file changed, 18 insertions(+), 32 deletions(-) (limited to 'framework/Web/UI/TPage.php') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 42f495cf..46d1d8df 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -1,8 +1,13 @@ _inFormRender=false; } + /** + * Sets input focus on a control after the page is rendered to users. + * @param TControl control to receive focus + */ public function setFocus(TControl $value) { $this->_focusedControl=$value; } + /** + * @return boolean (TBD) whether to keep the page scroll position the same as users last see it + */ public function getMaintainScrollPosition() { return $this->_maintainScrollPosition; } + /** + * @param boolean (TBD) whether to keep the page scroll position the same as users last see it + */ public function setMaintainScrollPosition($value) { $this->_maintainScrollPosition=TPropertyValue::ensureBoolean($value); @@ -723,38 +738,9 @@ class TPage extends TTemplateControl return true; } - - public function getClientOnSubmitEvent() - { - // todo - if($this->getClientScript()->getHasSubmitStatements()) - return 'javascript:return WebForm_OnSubmit();'; - else - return ''; - } - protected function initializeCulture() { } - - /** - * @internal - */ - public function loadScrollPosition() - { - if($this->_previousPagePath==='' && $this->_requestValueCollection) - { - if(isset($_REQUEST['__SCROLLPOSITIONX'])) - $this->_scrollPositionX=(integer)$_REQUEST['__SCROLLPOSITIONX']; - if(isset($_REQUEST['__SCROLLPOSITIONY'])) - $this->_scrollPositionX=(integer)$_REQUEST['__SCROLLPOSITIONY']; - } - } - - - final public function registerAsyncTask() - { - } } ?> \ No newline at end of file -- cgit v1.2.3