From ad538a4677b2acebc4b0968907c801172faa2d47 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 30 Oct 2009 22:51:47 +0000
Subject: [PATCH] Fix for issue 4326 (Allow setup of a Server without Data suffix)

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

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java b/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java
index 346cd3d..773cf9d 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java
@@ -336,6 +336,12 @@
           getColor(INFO_PASSWORDFIELD_COLOR.get());
 
   /**
+   * Specifies the in-line help text color.
+   */
+  public static final Color INLINE_HELP_COLOR =
+          getColor(INFO_INLINE_HELP_COLOR.get());
+
+  /**
    * Specifies the panel border color.
    */
   public static final Color PANEL_BORDER_COLOR =
@@ -504,6 +510,12 @@
    */
   public static final Font ERROR_DIALOG_FONT = defaultFont;
 
+  /**
+   * Specifies the font for the text in the in-line help.
+   */
+  public static final Font INLINE_HELP_FONT = defaultFont.deriveFont(
+      (float)(defaultFont.getSize() - 2));
+
   private static final String SPAN_CLOSE = "</span>";
 
   private static final String DIV_CLOSE = "</div>";
@@ -709,6 +721,10 @@
      */
     INSTRUCTIONS,
     /**
+     * In-line help style.
+     */
+    INLINE_HELP,
+    /**
      * No text style.
      */
     NO_STYLE
@@ -1076,6 +1092,11 @@
       l.setForeground(PASSWORDFIELD_COLOR);
       break;
 
+    case INLINE_HELP:
+      l.setFont(INLINE_HELP_FONT);
+      l.setForeground(INLINE_HELP_COLOR);
+      break;
+
     case NO_STYLE:
       // Do nothing
       break;

--
Gitblit v1.10.0