From 59ba268c8ed7ad58495f98af77a463e06f9f0f00 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 27 Apr 2007 14:51:31 +0000
Subject: [PATCH] Move some of the panels specific of the installer to the package org.opends.quicksetup.installer.ui.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
index e7c8a91..48c8fe5 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
@@ -32,6 +32,7 @@
 
 import javax.swing.*;
 import java.awt.event.WindowEvent;
+import java.util.LinkedHashSet;
 import java.util.Set;
 import java.util.logging.Logger;
 
@@ -178,6 +179,52 @@
   abstract public WizardStep getPreviousWizardStep(WizardStep step);
 
   /**
+   * Indicates whether or not the provided <code>step</code> is a sub step or
+   * not.
+   * @param step WizardStep for which the return value indicates whether
+   * or not is a sub step.
+   * @return boolean where true indicates the provided <code>step</code> is a
+   * substep.
+   */
+  public boolean isSubStep(WizardStep step)
+  {
+    return false;
+  }
+
+  /**
+   * Indicates whether or not the provided <code>step</code> is visible or
+   * not.
+   * @param step WizardStep for which the return value indicates whether
+   * or not is visible.
+   * @return boolean where true indicates the provided <code>step</code> is
+   * visible.
+   */
+  public boolean isVisible(WizardStep step)
+  {
+    return false;
+  }
+
+  /**
+   * Returns the list of all the steps in an ordered manner.  This is required
+   * because in the case of an application with substeps the user of the other
+   * interfaces is not enough.  This is a default implementation that uses
+   * the getNextWizardStep method to calculate the list that work for
+   * applications with no substeps.
+   * @return a list containing ALL the steps (including substeps) in an ordered
+   * manner.
+   */
+  public LinkedHashSet<WizardStep> getOrderedSteps()
+  {
+    LinkedHashSet<WizardStep> orderedSteps = new LinkedHashSet<WizardStep>();
+    WizardStep step = getFirstWizardStep();
+    orderedSteps.add(step);
+    while (null != (step = getNextWizardStep(step))) {
+      orderedSteps.add(step);
+    }
+    return orderedSteps;
+  }
+
+  /**
    * Indicates whether or not the user is allowed to return to a previous
    * step from <code>step</code>.
    * @param step WizardStep for which the the return value indicates whether

--
Gitblit v1.10.0