mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jcduff
23.04.2008 f73b655466092169abac34833fb628fce1fcdebe
opends/src/quicksetup/org/opends/quicksetup/installer/ui/ServerSettingsPanel.java
@@ -190,6 +190,7 @@
    {
        FieldName.HOST_NAME,
        FieldName.SERVER_PORT,
        FieldName.ADMIN_CONNECTOR_PORT,
        FieldName.SECURITY_OPTIONS,
        FieldName.DIRECTORY_MANAGER_DN,
        FieldName.DIRECTORY_MANAGER_PWD,
@@ -274,8 +275,11 @@
      panel.add(auxPanel, gbc);
      boolean isPortField = fieldName == FieldName.SERVER_PORT;
      boolean isAdminConnectorPortField =
        fieldName == FieldName.ADMIN_CONNECTOR_PORT;
      gbc.insets = UIFactory.getEmptyInsets();
      if (isPortField || (isSecurityField && canUpdateSecurity))
      if (isPortField || isAdminConnectorPortField ||
          (isSecurityField && canUpdateSecurity))
      {
        gbc.gridwidth = 3;
      }
@@ -313,6 +317,16 @@
        gbc.insets.left = UIFactory.LEFT_INSET_SECONDARY_FIELD;
        auxPanel.add(l, gbc);
      }
      else if (isAdminConnectorPortField)
      {
        JLabel l =
          UIFactory.makeJLabel(UIFactory.IconType.NO_ICON,
              getAdminConnectorPortHelpMessage(),
              UIFactory.TextStyle.SECONDARY_FIELD_VALID);
        gbc.gridwidth = GridBagConstraints.RELATIVE;
        gbc.insets.left = UIFactory.LEFT_INSET_SECONDARY_FIELD;
        auxPanel.add(l, gbc);
      }
      else if (isSecurityField && canUpdateSecurity)
      {
        gbc.gridwidth = GridBagConstraints.RELATIVE;
@@ -395,6 +409,17 @@
      }
      break;
    case ADMIN_CONNECTOR_PORT:
      if (defaultUserData.getAdminConnectorPort() > 0)
      {
        value = String.valueOf(defaultUserData.getAdminConnectorPort());
      }
      else
      {
        value = "";
      }
      break;
    case DIRECTORY_MANAGER_DN:
      value = defaultUserData.getDirectoryManagerDn();
      break;
@@ -440,6 +465,12 @@
        LabelFieldDescriptor.FieldType.TEXTFIELD,
        LabelFieldDescriptor.LabelType.PRIMARY, UIFactory.PORT_FIELD_SIZE));
    hm.put(FieldName.ADMIN_CONNECTOR_PORT, new LabelFieldDescriptor(
        INFO_ADMIN_CONNECTOR_PORT_LABEL.get(),
        INFO_ADMIN_CONNECTOR_PORT_TOOLTIP.get(),
        LabelFieldDescriptor.FieldType.TEXTFIELD,
        LabelFieldDescriptor.LabelType.PRIMARY, UIFactory.PORT_FIELD_SIZE));
    hm.put(FieldName.SECURITY_OPTIONS, new LabelFieldDescriptor(
        INFO_SERVER_SECURITY_LABEL.get(),
        INFO_SERVER_SECURITY_TOOLTIP.get(),
@@ -630,6 +661,22 @@
  /**
   * Returns the port help message that we display when we cannot use the
   * default admin connector port (4444).
   * @return the port help message that we display when we cannot use the
   * default admin connector port (4444).
   */
  private Message getAdminConnectorPortHelpMessage()
  {
    Message s = Message.EMPTY;
    if (defaultUserData.getAdminConnectorPort() != 4444)
    {
      s = INFO_CANNOT_USE_DEFAULT_ADMIN_CONNECTOR_PORT.get();
    }
    return s;
  }
  /**
   * Returns the port help message that we display when we cannot use the
   * default port (389).
   * @return the port help message that we display when we cannot use the
   * default port (389).