| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.quicksetup.installer.ui; |
| | | |
| | |
| | | /** |
| | | * This is the panel that contains the Server Settings: the port, the Directory |
| | | * Manager DN, etc. |
| | | * |
| | | */ |
| | | public class ServerSettingsPanel extends QuickSetupStepPanel |
| | | { |
| | |
| | | addFocusListeners(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public Object getFieldValue(FieldName fieldName) |
| | | { |
| | | Object value = null; |
| | |
| | | return value; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void displayFieldInvalid(FieldName fieldName, boolean invalid) |
| | | { |
| | | JLabel label = getLabel(fieldName); |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | protected Component createInputPanel() |
| | | { |
| | | JPanel panel = new JPanel(new GridBagLayout()); |
| | |
| | | return panel; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | protected LocalizableMessage getInstructions() |
| | | { |
| | | return INFO_SERVER_SETTINGS_PANEL_INSTRUCTIONS.get(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | protected LocalizableMessage getTitle() |
| | | { |
| | | return INFO_SERVER_SETTINGS_PANEL_TITLE.get(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void endDisplay() |
| | | { |
| | | if (lastFocusComponent != null) |
| | |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * Creates the components and populates the Maps with them. |
| | | */ |
| | | /** Creates the components and populates the Maps with them. */ |
| | | private void populateLabelAndFieldMaps() |
| | | { |
| | | HashMap<FieldName, LabelFieldDescriptor> hm = new HashMap<>(); |
| | |
| | | |
| | | secureAccessButton.addActionListener(new ActionListener() |
| | | { |
| | | @Override |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | getConfigureSecureAccessDialog().display(securityOptions); |
| | |
| | | return hmFields.get(fieldName); |
| | | } |
| | | |
| | | /** |
| | | * Adds the required focus listeners to the fields. |
| | | */ |
| | | /** Adds the required focus listeners to the fields. */ |
| | | private void addFocusListeners() |
| | | { |
| | | final FocusListener l = new FocusListener() |
| | | { |
| | | @Override |
| | | public void focusGained(FocusEvent e) |
| | | { |
| | | lastFocusComponent = e.getComponent(); |
| | | } |
| | | |
| | | @Override |
| | | public void focusLost(FocusEvent e) |
| | | { |
| | | } |