From 247adc2b524e82e284fa74798ea1a21f2d754892 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 06 Jul 2007 18:12:40 +0000
Subject: [PATCH] Add the code required to update the list of steps that appear on the left of the wizard dynamically.

---
 opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
index d63c477..57a3bf5 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
@@ -237,13 +237,31 @@
   }
 
   /**
-   * Indicates whether the provided <code>step</code> is visible or not.
+   * Indicates whether the provided <code>step</code> is visible or not
+   * depending on the contents of the UserData object that is provided.
    * @param step WizardStep for which the return value indicates whether
    * or not is visible.
+   * @param userData the UserData to be used to determine if the step is
+   * visible or not.
    * @return boolean where true indicates the provided <code>step</code> is
    * visible.
    */
-  public boolean isVisible(WizardStep step)
+  public boolean isVisible(WizardStep step, UserData userData)
+  {
+    return true;
+  }
+
+  /**
+   * Indicates whether the provided <code>step</code> is visible or not
+   * depending on the contents of the QuickSetup object that is provided.
+   * @param step WizardStep for which the return value indicates whether
+   * or not is visible.
+   * @param qs the QuickSetup to be used to determine if the step is
+   * visible or not.
+   * @return boolean where true indicates the provided <code>step</code> is
+   * visible.
+   */
+  public boolean isVisible(WizardStep step, QuickSetup qs)
   {
     return true;
   }

--
Gitblit v1.10.0