diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
| commit | b086f57f56bf0eb9dab9cf321a0f69aaaae84347 (patch) | |
| tree | 8e6e26e8b7eed6abad7a17b093bdbb55c5e6b1ba /source/com/c2kernel/lifecycle/chooser/LDAPEntryChooser.java | |
| parent | 22088ae8d2d5ff390518dbe1c4372325ffb3a647 (diff) | |
Initial Maven Conversion
Diffstat (limited to 'source/com/c2kernel/lifecycle/chooser/LDAPEntryChooser.java')
| -rw-r--r-- | source/com/c2kernel/lifecycle/chooser/LDAPEntryChooser.java | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/source/com/c2kernel/lifecycle/chooser/LDAPEntryChooser.java b/source/com/c2kernel/lifecycle/chooser/LDAPEntryChooser.java deleted file mode 100644 index d21f6d5..0000000 --- a/source/com/c2kernel/lifecycle/chooser/LDAPEntryChooser.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.c2kernel.lifecycle.chooser;
-/**
- * @version $Revision: 1.2 $ $Date: 2005/12/01 14:23:15 $
- * @author $Author: abranson $
- */
-
-import java.awt.Dimension;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Enumeration;
-
-import javax.swing.JComboBox;
-
-import com.c2kernel.lookup.DomainPath;
-import com.c2kernel.process.Gateway;
-import com.c2kernel.utils.Logger;
-
-public class LDAPEntryChooser extends JComboBox
-{
-
- DomainPath mDomainPath = null;
- ArrayList<String> allItems = new ArrayList<String>();
-
- public LDAPEntryChooser(DomainPath domPath, boolean editable)
- {
- super();
- setEditable(editable);
- mDomainPath = domPath;
- initialise();
- }
-
- private void initialise()
- {
- try
- {
- Enumeration<?> children = Gateway.getLDAPLookup().searchAliases(mDomainPath);
- while (children.hasMoreElements())
- {
- DomainPath domPath = (DomainPath)children.nextElement();
- allItems.add(domPath.getName());
- }
- }
- catch (Exception ex)
- {
- Logger.exceptionDialog(ex);
- }
-
- Collections.sort(allItems);
- addItem("");
- for (String element : allItems) {
- addItem(element);
- }
-
- }
-
- public void reload()
- {
- removeAllItems();
- initialise();
- }
-
- @Override
- public synchronized Dimension getSize()
- {
- if ("1".equals(Gateway.getProperty("ResizeCombo")))
- return new Dimension(super.getSize().width<400?400:super.getSize().width,super.getSize().height);
- return super.getSize();
- }
-
-}
|
