From b7eaa6fa023b868aa8154610c05801a94ed0afea Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 05 Jan 2007 14:04:45 +0000
Subject: [PATCH] 

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

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java
index 9155a1e..8bf1674 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/CurrentStepPanel.java
@@ -34,6 +34,7 @@
 
 import org.opends.quicksetup.CurrentInstallStatus;
 import org.opends.quicksetup.Step;
+import org.opends.quicksetup.event.ButtonActionListener;
 import org.opends.quicksetup.installer.FieldName;
 import org.opends.quicksetup.installer.InstallProgressDescriptor;
 import org.opends.quicksetup.installer.UserInstallData;
@@ -167,6 +168,31 @@
   }
 
   /**
+   * Adds a button listener.  All the button listeners will be notified when
+   * the buttons are clicked (by the user or programatically).
+   * @param l the ButtonActionListener to be added.
+   */
+  public void addButtonActionListener(ButtonActionListener l)
+  {
+    for (Step s : hmPanels.keySet())
+    {
+      getPanel(s).addButtonActionListener(l);
+    }
+  }
+
+  /**
+   * Removes a button listener.
+   * @param l the ButtonActionListener to be removed.
+   */
+  public void removeButtonActionListener(ButtonActionListener l)
+  {
+    for (Step s : hmPanels.keySet())
+    {
+      getPanel(s).removeButtonActionListener(l);
+    }
+  }
+
+  /**
    * Displays the panel corresponding to the provided step.  The panel contents
    * are updated with the contents of the UserInstallData object.
    * @param step the step that we want to display.

--
Gitblit v1.10.0