From 43e9c7913fc664b725e167090fe6d389a4558315 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 14:43:45 +0000
Subject: [PATCH] The following commit adds all the code necessary to be able to configure replication using the setup.

---
 opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupDialog.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupDialog.java b/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupDialog.java
index 6f40872..77cd309 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupDialog.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupDialog.java
@@ -302,7 +302,7 @@
     {
       public void run()
       {
-        // TODO: here we could have an animated gif.
+        displayWorkingProgressImage(true);
         setButtonEnabled(ButtonName.NEXT, false);
         setButtonEnabled(ButtonName.PREVIOUS, false);
         setButtonEnabled(ButtonName.FINISH, false);
@@ -325,7 +325,7 @@
     {
       public void run()
       {
-        // TO COMPLETE: here we could have an animated gif.
+        displayWorkingProgressImage(false);
         setButtonEnabled(ButtonName.NEXT, true);
         setButtonEnabled(ButtonName.PREVIOUS, true);
         setButtonEnabled(ButtonName.FINISH, true);
@@ -543,4 +543,13 @@
       li.buttonActionPerformed(be);
     }
   }
+
+  private void displayWorkingProgressImage(boolean display)
+  {
+    if (getFramePanel() instanceof FramePanel)
+    {
+      ((FramePanel)getFramePanel()).setProgressIcon(display ?
+          UIFactory.IconType.WAIT : UIFactory.IconType.NO_ICON);
+    }
+  }
 }

--
Gitblit v1.10.0