From 4cd4ffb2771ea2d133b30273b1ffea0fef6b4552 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 17 Apr 2007 20:23:12 +0000
Subject: [PATCH] This commit introduces preliminary versions of the upgrader tool's GUI wizard panels.  Effort has been made to make the panels conform to the design at

---
 opends/src/quicksetup/org/opends/quicksetup/ui/ServerSettingsPanel.java |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/ServerSettingsPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/ServerSettingsPanel.java
index 53f4bb1..0bdbf53 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/ServerSettingsPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/ServerSettingsPanel.java
@@ -42,7 +42,6 @@
 import javax.swing.text.JTextComponent;
 
 import org.opends.quicksetup.event.BrowseActionListener;
-import org.opends.quicksetup.installer.FieldName;
 import org.opends.quicksetup.util.Utils;
 import org.opends.quicksetup.UserData;
 
@@ -77,15 +76,15 @@
 
   /**
    * Constructor of the panel.
-   * @param defaultUserData the default values that must be used to initialize
+   * @param application Application this panel represents
    * the fields of the panel.
    */
-  public ServerSettingsPanel(UserData defaultUserData)
+  public ServerSettingsPanel(GuiApplication application)
   {
-    this.defaultUserData = defaultUserData;
+    super(application);
+    this.defaultUserData = application.getUserData();
     this.displayServerLocation = isWebStart();
     populateLabelAndFieldMaps();
-    createLayout();
     addFocusListeners();
   }
 
@@ -368,7 +367,7 @@
     {
       LabelFieldDescriptor desc = hm.get(fieldName);
       String defaultValue = getDefaultValue(fieldName);
-      JTextComponent field = makeJTextComponent(desc, defaultValue);
+      JTextComponent field = UIFactory.makeJTextComponent(desc, defaultValue);
       JLabel label = makeJLabel(desc);
 
       hmFields.put(fieldName, field);
@@ -384,7 +383,7 @@
             LabelFieldDescriptor.FieldType.TEXTFIELD,
             LabelFieldDescriptor.LabelType.PRIMARY, UIFactory.PATH_FIELD_SIZE);
     lServerLocation = makeJLabel(desc);
-    tfServerLocationParent = makeJTextComponent(desc, "");
+    tfServerLocationParent = UIFactory.makeJTextComponent(desc, "");
     lServerLocation.setLabelFor(tfServerLocationParent);
 
     desc =
@@ -393,7 +392,7 @@
             LabelFieldDescriptor.FieldType.TEXTFIELD,
             LabelFieldDescriptor.LabelType.PRIMARY,
             UIFactory.RELATIVE_PATH_FIELD_SIZE);
-    tfServerLocationRelativePath = makeJTextComponent(desc, "");
+    tfServerLocationRelativePath = UIFactory.makeJTextComponent(desc, "");
     String defaultPath = getDefaultValue(FieldName.SERVER_LOCATION);
     if (defaultPath != null)
     {

--
Gitblit v1.10.0