| | |
| | | |
| | | import javax.swing.Box; |
| | | import javax.swing.ButtonGroup; |
| | | import javax.swing.DefaultComboBoxModel; |
| | | import javax.swing.JButton; |
| | | import javax.swing.JComboBox; |
| | | import javax.swing.JLabel; |
| | |
| | | import org.opends.quicksetup.ui.UIFactory; |
| | | import org.opends.quicksetup.ui.Utilities; |
| | | import org.opends.server.tools.BackendTypeHelper; |
| | | import org.opends.server.tools.BackendTypeHelper.BackendTypeUIAdapter; |
| | | |
| | | /** |
| | | * This is the panel that contains the Data Options: the suffix dn, whether to |
| | |
| | | |
| | | private JButton ldifBrowseButton; |
| | | |
| | | private JComboBox backendTypeComboBox; |
| | | private JComboBox<BackendTypeUIAdapter> backendTypeComboBox; |
| | | |
| | | /** |
| | | * Constructor of the panel. |
| | |
| | | } |
| | | else if (FieldName.BACKEND_TYPE == fieldName) |
| | | { |
| | | return backendTypeComboBox.getSelectedItem().toString(); |
| | | return ((BackendTypeUIAdapter) backendTypeComboBox.getSelectedItem()).getBackend(); |
| | | } |
| | | else |
| | | { |
| | |
| | | private void createBackendTypeComboBox() |
| | | { |
| | | final BackendTypeHelper backendTypeHelper = new BackendTypeHelper(); |
| | | backendTypeComboBox = new JComboBox(new DefaultComboBoxModel(backendTypeHelper.getBackendTypeNames().toArray())); |
| | | backendTypeComboBox = new JComboBox<>(backendTypeHelper.getBackendTypeUIAdaptors()); |
| | | } |
| | | |
| | | private void createDirectoryDataChoiceRadioButton(final JLabel dataLabel) |