You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/06/14 23:14:40 UTC
svn commit: r547407 -
/incubator/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/dynamic/DynamicWizardStep.java
Author: ehillenius
Date: Thu Jun 14 14:14:39 2007
New Revision: 547407
URL: http://svn.apache.org/viewvc?view=rev&rev=547407
Log:
force providing the previous step (if any) so that navigating back automatically works.
Modified:
incubator/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/dynamic/DynamicWizardStep.java
Modified: incubator/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/dynamic/DynamicWizardStep.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/dynamic/DynamicWizardStep.java?view=diff&rev=547407&r1=547406&r2=547407
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/dynamic/DynamicWizardStep.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/dynamic/DynamicWizardStep.java Thu Jun 14 14:14:39 2007
@@ -28,15 +28,20 @@
*/
public abstract class DynamicWizardStep extends WizardStep implements IDynamicWizardStep
{
- private IDynamicWizardStep previousStep;
+ private final IDynamicWizardStep previousStep;
/**
* Construct without a title and a summary. Useful for when you provide a
* custom header by overiding {@link #getHeader(String, Component, IWizard)}.
+ *
+ * @param previousStep
+ * The previous step. May be null if this is the first step in
+ * the wizard
*/
- public DynamicWizardStep()
+ public DynamicWizardStep(IDynamicWizardStep previousStep)
{
super();
+ this.previousStep = previousStep;
}
/**
@@ -44,14 +49,18 @@
* summary are displayed in the wizard title block while this step is
* active.
*
+ * @param previousStep
+ * The previous step. May be null if this is the first step in
+ * the wizard
* @param title
* the title of this step.
* @param summary
* a brief summary of this step or some usage guidelines.
*/
- public DynamicWizardStep(IModel title, IModel summary)
+ public DynamicWizardStep(IDynamicWizardStep previousStep, IModel title, IModel summary)
{
super(title, summary);
+ this.previousStep = previousStep;
}
/**
@@ -59,6 +68,9 @@
* summary are displayed in the wizard title block while this step is
* active.
*
+ * @param previousStep
+ * The previous step. May be null if this is the first step in
+ * the wizard
* @param title
* the title of this step.
* @param summary
@@ -66,9 +78,11 @@
* @param model
* Any model which is to be used for this step
*/
- public DynamicWizardStep(IModel title, IModel summary, IModel model)
+ public DynamicWizardStep(IDynamicWizardStep previousStep, IModel title, IModel summary,
+ IModel model)
{
super(title, summary, model);
+ this.previousStep = previousStep;
}
/**
@@ -76,14 +90,18 @@
* summary are displayed in the wizard title block while this step is
* active.
*
+ * @param previousStep
+ * The previous step. May be null if this is the first step in
+ * the wizard
* @param title
* the title of this step.
* @param summary
* a brief summary of this step or some usage guidelines.
*/
- public DynamicWizardStep(String title, String summary)
+ public DynamicWizardStep(IDynamicWizardStep previousStep, String title, String summary)
{
super(title, summary);
+ this.previousStep = previousStep;
}
/**
@@ -91,6 +109,9 @@
* summary are displayed in the wizard title block while this step is
* active.
*
+ * @param previousStep
+ * The previous step. May be null if this is the first step in
+ * the wizard
* @param title
* the title of this step.
* @param summary
@@ -98,9 +119,11 @@
* @param model
* Any model which is to be used for this step
*/
- public DynamicWizardStep(String title, String summary, IModel model)
+ public DynamicWizardStep(IDynamicWizardStep previousStep, String title, String summary,
+ IModel model)
{
super(title, summary, model);
+ this.previousStep = previousStep;
}
/**