summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-03-25 14:29:46 +0000
committerxue <>2006-03-25 14:29:46 +0000
commitde4e0fc293b8f5a9d009cf40018bba88d9416b41 (patch)
tree98543330162a6e103f95257ce9dcdb25540fd6df /framework
parentd8d697fe108e488e4b210d96ec08aa69942a3902 (diff)
Finished all TWizard demos.
Diffstat (limited to 'framework')
-rw-r--r--framework/Exceptions/messages.txt10
-rw-r--r--framework/Web/UI/WebControls/TWizard.php6
2 files changed, 14 insertions, 2 deletions
diff --git a/framework/Exceptions/messages.txt b/framework/Exceptions/messages.txt
index 81664b3e..798fb50a 100644
--- a/framework/Exceptions/messages.txt
+++ b/framework/Exceptions/messages.txt
@@ -159,6 +159,7 @@ templatecontrol_mastercontrol_invalid = Master control must be of type TTemplate
templatecontrol_contentid_duplicated = TContent ID '{0}' is duplicated.
templatecontrol_placeholderid_duplicated= TContentPlaceHolder ID '{0}' is duplicated.
templatecontrol_directive_invalid = {0}.{1} can only accept a static text string through a template directive.
+templatecontrol_placeholder_inexistent = TContent '{0}' does not have a matching TPlaceHolder.
page_form_duplicated = A page can contain at most one TForm. Use regular HTML form tags for the rest forms.
page_isvalid_unknown = TPage.IsValid has not been evaluated yet.
@@ -257,4 +258,11 @@ multiview_viewid_invalid = TMultiView cannot find the view '{0}' to switch to
viewcollection_view_required = TViewCollection can only accept TView as its element.
-view_visible_readonly = TView.Visible is read-only. Use TView.Active to toggle its visibility. \ No newline at end of file
+view_visible_readonly = TView.Visible is read-only. Use TView.Active to toggle its visibility.
+
+wizard_step_invalid = The step to be activated cannot be found in wizard step collection.
+wizard_command_invalid = Invalid wizard navigation command '{0}'.
+
+completewizardstep_steptype_readonly = TCompleteWizardStep.StepType is read-only.
+
+wizardstepcollection_wizardstep_required = TWizardStepCollection can only accept objects of TWizardStep or its derived classes. \ No newline at end of file
diff --git a/framework/Web/UI/WebControls/TWizard.php b/framework/Web/UI/WebControls/TWizard.php
index 3a37b590..0da859f8 100644
--- a/framework/Web/UI/WebControls/TWizard.php
+++ b/framework/Web/UI/WebControls/TWizard.php
@@ -202,6 +202,7 @@ class TWizard extends TWebControl implements INamingContainer
/**
* @param TWizardStep step to be activated
+ * @throws TInvalidOperationException if the step is not in the wizard step collection
*/
public function setActiveStep($step)
{
@@ -1275,6 +1276,7 @@ class TWizard extends TWebControl implements INamingContainer
* wizard-specific events.
* @param mixed sender of the original command event
* @param TEventParameter event parameter
+ * @throws TInvalidDataValueException if a navigation command is associated with an invalid parameter
*/
public function onBubbleEvent($sender,$param)
{
@@ -1751,6 +1753,7 @@ class TWizardStepCollection extends TList
* the item being added is a {@link TWizardStep}.
* @param integer the speicified position.
* @param mixed new item
+ * @throws TInvalidDataTypeException if the item being added is not TWizardStep.
*/
public function insertAt($index,$item)
{
@@ -1760,7 +1763,7 @@ class TWizardStepCollection extends TList
$this->_wizard->addedWizardStep($item);
}
else
- throw new TInvalidDataTypeException('wizardstepcollection_wizardstepbase_required');
+ throw new TInvalidDataTypeException('wizardstepcollection_wizardstep_required');
}
/**
@@ -2032,6 +2035,7 @@ class TWizardNavigationTemplate extends TComponent implements ITemplate
* @param TWizardNavigationButtonStyle button style
* @param boolean whether the button should cause validation
* @param string command name for the button's OnCommand event
+ * @throws TInvalidDataValueException if the button type is not recognized
*/
protected function createNavigationButton($buttonStyle,$causesValidation,$commandName)
{