From c89523c4ab1bda766d6b0b4b4d2ade3513046400 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 29 Jan 2006 04:57:44 +0000 Subject: Adding TWizard (not working). --- framework/Web/UI/WebControls/TWizardStep.php | 78 ++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 framework/Web/UI/WebControls/TWizardStep.php (limited to 'framework/Web/UI/WebControls/TWizardStep.php') diff --git a/framework/Web/UI/WebControls/TWizardStep.php b/framework/Web/UI/WebControls/TWizardStep.php new file mode 100644 index 00000000..9e58b59e --- /dev/null +++ b/framework/Web/UI/WebControls/TWizardStep.php @@ -0,0 +1,78 @@ + + * @version $Revision: 1.1 $ $Date: 2005/01/22 03:11:28 $ + * @package System.Web.UI.WebControls + */ + +/** + * Each step of the TWizard is specified by one TWizardStep component. + * A wizard step can be of type "Auto" or "Final" be specifying the + * Type property. The "Final" step type should be the very last step + * of the form to show a final confirmation/"Thank you" note. All other + * steps should be of Type="Auto". The Title property is by default + * used by the Navigation side bar as the name of the links to each form. + * + * TWizardStep should be used within a TWizard component. + * + * Namespace: System.Web.UI.WebControls + * + * Properties + * - Type, string, + *
Gets or sets the step type. Valid types are + * "Auto" and "Final". + * - Title, string, + *
Gets or sets the title for this wizard step. + * + * @author Xiang Wei Zhuo + * @version v1.0, last update on Sat Dec 11 15:25:11 EST 2004 + * @package System.Web.UI.WebControls + */ +class TWizardStep extends TPanel +{ + /** + * Wizard step type "Auto" + * @var string + */ + const TYPE_AUTO = 'Auto'; + + /** + * Wizard step type "Final" + * @var string + */ + const TYPE_FINAL = 'Final'; + + /** + * Get the wizard step type. + * @return string step type. + */ + function getType() + { + return $this->getViewState('Type',self::TYPE_AUTO); + } + + /** + * Set the wizard step type, default is "Auto". Valid step + * types are "Auto" and "Final". + * @param string step type + */ + function setType($value) + { + $this->setViewState('Type', TPropertyValue::ensureEnum( + $value, self::TYPE_AUTO, self::TYPE_FINAL), self::TYPE_AUTO); + } +} + +?> \ No newline at end of file -- cgit v1.2.3