From d4aaf35eaab80ef7fa76abb22e6d690f1e371a29 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 06 Jul 2007 11:52:45 +0000
Subject: [PATCH] Move the progress icon inside the panels instead of putting it in the lower left side of the dialog.  Do not display the progress icon when the user clicks on "Launch Status Panel" at the end of the setup but update the icon and put it in busy mode.

---
 opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java
index 3f0b88e..cc01adb 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java
@@ -225,7 +225,7 @@
   /**
    * Forwards the different panels the ProgressDescriptor so that they
    * can update their contents accordingly.
-   * @param descriptor the descriptor of the Uninstallation progress.
+   * @param descriptor the descriptor of the Application progress.
    */
   public void displayProgress(ProgressDescriptor descriptor)
   {
@@ -236,6 +236,20 @@
   }
 
   /**
+   * This method sets up an icon on the bottom left side of the dialog.
+   * Generally this method is called with an animated gif that is passed to
+   * display progress.
+   * @param iconType the icon type to be set.
+   */
+  public void setIcon(UIFactory.IconType iconType)
+  {
+    for (WizardStep s : hmPanels.keySet())
+    {
+      getPanel(s).setIcon(iconType);
+    }
+  }
+
+  /**
    * Retrieves the panel for the provided step.
    * @param step the step for which we want to get the panel.
    * @return the panel for the provided step.

--
Gitblit v1.10.0