mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
05.04.2007 b7eaa6fa023b868aa8154610c05801a94ed0afea
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.