You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2009/09/23 01:19:54 UTC

svn commit: r817898 - /wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardModel.java

Author: ivaynberg
Date: Tue Sep 22 23:19:54 2009
New Revision: 817898

URL: http://svn.apache.org/viewvc?rev=817898&view=rev
Log:
WICKET-2483
Issue: WICKET-2483

Modified:
    wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardModel.java

Modified: wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardModel.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardModel.java?rev=817898&r1=817897&r2=817898&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardModel.java (original)
+++ wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardModel.java Tue Sep 22 23:19:54 2009
@@ -17,6 +17,7 @@
 package org.apache.wicket.extensions.wizard;
 
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
@@ -30,9 +31,8 @@
  * optional by using {@link ICondition}. The wizard is initialized with a wizard model through
  * calling method {@link Wizard#init(IWizardModel)}.
  * <p>
- * Steps can be added to this model directly using either the
- * {@link #add(IWizardStep) normal add method} or
- * {@link #add(IWizardStep, ICondition) the conditional add method}.
+ * Steps can be added to this model directly using either the {@link #add(IWizardStep) normal add
+ * method} or {@link #add(IWizardStep, ICondition) the conditional add method}.
  * </p>
  * 
  * <p>
@@ -99,8 +99,8 @@
 
 	/**
 	 * Adds the next step to the wizard. If the {@link WizardStep} implements {@link ICondition},
-	 * then this method is equivalent to calling
-	 * {@link #add(IWizardStep, ICondition) add(step, (ICondition)step)}.
+	 * then this method is equivalent to calling {@link #add(IWizardStep, ICondition) add(step,
+	 * (ICondition)step)}.
 	 * 
 	 * @param step
 	 *            the step to added.
@@ -244,11 +244,10 @@
 
 	/**
 	 * Returns true if all the steps in the wizard return <tt>true</tt> from
-	 * {@link IWizardStep#isComplete}. This is primarily used to determine if the last button can
-	 * be enabled.
+	 * {@link IWizardStep#isComplete}. This is primarily used to determine if the last button can be
+	 * enabled.
 	 * 
-	 * @return <tt>true</tt> if all the steps in the wizard are complete, <tt>false</tt>
-	 *         otherwise.
+	 * @return <tt>true</tt> if all the steps in the wizard are complete, <tt>false</tt> otherwise.
 	 */
 	protected final boolean allStepsComplete()
 	{
@@ -302,4 +301,16 @@
 
 		throw new IllegalStateException("Wizard contains no more visible steps");
 	}
+
+	/**
+	 * Gets conditions.
+	 * 
+	 * @return unmodifiable list of conditions
+	 */
+	public List<ICondition> getConditions()
+	{
+		return Collections.unmodifiableList(conditions);
+	}
+
+
 }
\ No newline at end of file