From c40f084a6d3e897785f2fbff3ddb97545644cddc Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 11 Dec 2006 15:34:39 +0000
Subject: [PATCH] The following modifications include the comments from Neil and Brian (thanks to both for your help):
---
opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupStepPanel.java | 30 +++++++++++++++++++++++++++++-
1 files changed, 29 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupStepPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupStepPanel.java
index 0e22ab4..a6c03c6 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupStepPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetupStepPanel.java
@@ -45,6 +45,9 @@
import org.opends.quicksetup.installer.InstallProgressDescriptor;
import org.opends.quicksetup.installer.LabelFieldDescriptor;
import org.opends.quicksetup.installer.UserInstallData;
+import org.opends.quicksetup.uninstaller.UninstallProgressDescriptor;
+import org.opends.quicksetup.util.HtmlProgressMessageFormatter;
+import org.opends.quicksetup.util.ProgressMessageFormatter;
import org.opends.quicksetup.util.URLWorker;
import org.opends.quicksetup.util.Utils;
@@ -60,6 +63,8 @@
{
private Component inputPanel;
+ private ProgressMessageFormatter formatter;
+
// We can use a HashMap (not multi-thread safe) because all
// the calls to this object are done in the event-thread.
private HashMap<String, URLWorker> hmURLWorkers =
@@ -92,6 +97,15 @@
}
/**
+ * Called when a progress change must be reflected in the panels. Only
+ * ProgressPanel overwrites this method and for all the others it stays empty.
+ * @param descriptor the descriptor of the Uninstallation progress.
+ */
+ public void displayProgress(UninstallProgressDescriptor descriptor)
+ {
+ }
+
+ /**
* Implements HyperlinkListener. When the user clicks on a link we will
* try to display the associated URL in the browser of the user.
*
@@ -363,6 +377,21 @@
}
/**
+ * Returns the formatter that will be used to display the messages in this
+ * panel.
+ * @return the formatter that will be used to display the messages in this
+ * panel.
+ */
+ ProgressMessageFormatter getFormatter()
+ {
+ if (formatter == null)
+ {
+ formatter = new HtmlProgressMessageFormatter();
+ }
+ return formatter;
+ }
+
+ /**
* Creates and returns the title panel.
* @return the title panel.
*/
@@ -404,7 +433,6 @@
String instructions = getInstructions();
if (instructions != null)
{
-
JEditorPane p =
UIFactory.makeHtmlPane(instructions, UIFactory.INSTRUCTIONS_FONT);
p.setOpaque(false);
--
Gitblit v1.10.0