From 43e9c7913fc664b725e167090fe6d389a4558315 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 14:43:45 +0000
Subject: [PATCH] The following commit adds all the code necessary to be able to configure replication using the setup.
---
opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java
index e006439..93a2cb4 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java
@@ -35,8 +35,8 @@
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
-import javax.swing.Box;
import javax.swing.Icon;
+import javax.swing.JLabel;
import javax.swing.JPanel;
/**
@@ -64,6 +64,8 @@
private int stepsPanelHorizontalInsets;
+ private JLabel progressLabel;
+
/**
* The constructor of the FramePanel.
* @param stepsPanel the steps panel that on the top-left side of the
@@ -108,10 +110,17 @@
gbc.insets = UIFactory.getEmptyInsets();
add(currentPanelContainer, gbc);
+ progressLabel = UIFactory.makeJLabel(UIFactory.IconType.NO_ICON, null,
+ UIFactory.TextStyle.READ_ONLY);
+ gbc.weighty = 0.0;
+ gbc.insets.left = UIFactory.getStepsPanelInsets().left;
+ gbc.insets.bottom = UIFactory.getButtonsPanelInsets().bottom;
+ add(progressLabel, gbc);
gbc.gridwidth = GridBagConstraints.RELATIVE;
+ gbc.anchor = GridBagConstraints.WEST;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
- add(Box.createHorizontalGlue(), gbc);
+ add(progressLabel, gbc);
gbc.gridwidth = GridBagConstraints.REMAINDER;
gbc.weightx = 1.0;
@@ -142,6 +151,19 @@
}
/**
+ * This method sets up an icon on the bottom left side of the dialog.
+ * Generally this method is called with an animated gif that is passed to
+ * display progress.
+ * @param iconType the icon type to be set.
+ */
+ public void setProgressIcon(UIFactory.IconType iconType)
+ {
+ // For the moment we are lacking of a decent progress dialog to be
+ // displayed.
+ //progressLabel.setIcon(UIFactory.getImageIcon(iconType));
+ }
+
+ /**
* {@inheritDoc}
*
* This method has been overwritten to be able to have a transparency effect
--
Gitblit v1.10.0