From b1323f31af5dea42c99385c2c50d9e664fbce847 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 26 Mar 2006 18:24:16 +0000 Subject: Modified DisplaySideBar and DisplayCancelButton to ShowSideBar and ShowCancelButton, respectively. --- .../pages/Controls/Samples/TWizard/Sample3.page | 2 +- .../protected/pages/Controls/Wizard.page | 2 +- framework/Web/UI/WebControls/TWizard.php | 26 +++++++++++----------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page index bb0a251c..aa43a0f9 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page @@ -10,7 +10,7 @@ In the following survey, if you are a college student, you will be asked which m BackColor="#FFFBD6" Width="300px" HeaderText="A Mini Survey" - DisplaySideBar="false" + ShowSideBar="false" HeaderStyle.BackColor="PaleGoldenrod" HeaderStyle.HorizontalAlign="Center" NavigationStyle.HorizontalAlign="Center" diff --git a/demos/quickstart/protected/pages/Controls/Wizard.page b/demos/quickstart/protected/pages/Controls/Wizard.page index 7d83c697..f903e183 100644 --- a/demos/quickstart/protected/pages/Controls/Wizard.page +++ b/demos/quickstart/protected/pages/Controls/Wizard.page @@ -5,7 +5,7 @@

Overview

-TWizard is analogous to the installation wizard commonly used to install software on Windows. It splits a large form and presents the user with a series of smaller forms, called wizard steps, to complete. The following figure shows how a wizard is composed of when presented to users, where step content is the main content of a wizard step for users to complete, header refers to header content common to all steps, navigation contains buttons that allow users to navigate step by step, and side bar contains a list of hyperlinks by which users can reach to any step with one click. The visibility of the side bar can be toggled by setting DisplaySideBar. +TWizard is analogous to the installation wizard commonly used to install software on Windows. It splits a large form and presents the user with a series of smaller forms, called wizard steps, to complete. The following figure shows how a wizard is composed of when presented to users, where step content is the main content of a wizard step for users to complete, header refers to header content common to all steps, navigation contains buttons that allow users to navigate step by step, and side bar contains a list of hyperlinks by which users can reach to any step with one click. The visibility of the side bar can be toggled by setting ShowSideBar.

components of wizard diff --git a/framework/Web/UI/WebControls/TWizard.php b/framework/Web/UI/WebControls/TWizard.php index 0da859f8..0b44872b 100644 --- a/framework/Web/UI/WebControls/TWizard.php +++ b/framework/Web/UI/WebControls/TWizard.php @@ -61,7 +61,7 @@ Prado::using('System.Web.UI.WebControls.TDataList'); * Default templates will be used if above templates are not set. * - side bar: {@link setSideBarTemplate SideBarTemplate}. * A default template will be used if this template is not set. - * Its visibility is toggled by {@link setDisplaySideBar DisplaySideBar}. + * Its visibility is toggled by {@link setShowSideBar ShowSideBar}. * * The style of these wizard layout components can be customized via the following style properties, * - header: {@link getHeaderStyle HeaderStyle}. @@ -251,33 +251,33 @@ class TWizard extends TWebControl implements INamingContainer /** * @return boolean whether to display a cancel button in each wizard step. Defaults to false. */ - public function getDisplayCancelButton() + public function getShowCancelButton() { - return $this->getViewState('DisplayCancelButton',false); + return $this->getViewState('ShowCancelButton',false); } /** * @param boolean whether to display a cancel button in each wizard step. */ - public function setDisplayCancelButton($value) + public function setShowCancelButton($value) { - $this->setViewState('DisplayCancelButton',TPropertyValue::ensureBoolean($value),false); + $this->setViewState('ShowCancelButton',TPropertyValue::ensureBoolean($value),false); } /** * @return boolean whether to display a side bar that contains links to wizard steps. Defaults to true. */ - public function getDisplaySideBar() + public function getShowSideBar() { - return $this->getViewState('DisplaySideBar',true); + return $this->getViewState('ShowSideBar',true); } /** * @param boolean whether to display a side bar that contains links to wizard steps. */ - public function setDisplaySideBar($value) + public function setShowSideBar($value) { - $this->setViewState('DisplaySideBar',TPropertyValue::ensureBoolean($value),true); + $this->setViewState('ShowSideBar',TPropertyValue::ensureBoolean($value),true); $this->requiresControlsRecreation(); } @@ -808,8 +808,8 @@ class TWizard extends TWebControl implements INamingContainer */ protected function applySideBarProperties() { - $this->_sideBar->setVisible($this->getDisplaySideBar()); - if($this->_sideBarDataList!==null && $this->getDisplaySideBar()) + $this->_sideBar->setVisible($this->getShowSideBar()); + if($this->_sideBarDataList!==null && $this->getShowSideBar()) { $this->_sideBarDataList->setDataSource($this->getWizardSteps()); $this->_sideBarDataList->setSelectedItemIndex($this->getActiveStepIndex()); @@ -876,7 +876,7 @@ class TWizard extends TWebControl implements INamingContainer if(($navigationStyle=$this->getViewState('NavigationStyle',null))!==null) $this->_navigation->getStyle()->mergeWith($navigationStyle); - $displayCancelButton=$this->getDisplayCancelButton(); + $displayCancelButton=$this->getShowCancelButton(); $cancelButtonStyle=$this->getCancelButtonStyle(); $buttonStyle=$this->getViewState('NavigationButtonStyle',null); if($buttonStyle!==null) @@ -1033,7 +1033,7 @@ class TWizard extends TWebControl implements INamingContainer */ protected function createSideBar() { - if($this->getDisplaySideBar()) + if($this->getShowSideBar()) { if(($template=$this->getSideBarTemplate())===null) $template=new TWizardSideBarTemplate; -- cgit v1.2.3