| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | |
| | | /* |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.ui; |
| | |
| | | import org.opends.guitools.controlpanel.browser.BrowserController; |
| | | import org.opends.guitools.controlpanel.ui.nodes.BasicNode; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.messages.Message; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | /** |
| | | * The panel used to create a new organization. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Message getTitle() |
| | | public LocalizableMessage getTitle() |
| | | { |
| | | return INFO_CTRL_NEW_ORGANIZATION_PANEL_TITLE.get(); |
| | | } |
| | |
| | | * Returns the title of the progress dialog. |
| | | * @return the title of the progress dialog. |
| | | */ |
| | | protected Message getProgressDialogTitle() |
| | | protected LocalizableMessage getProgressDialogTitle() |
| | | { |
| | | return INFO_CTRL_NEW_ORGANIZATION_PANEL_TITLE.get(); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | protected void checkSyntax(ArrayList<Message> errors) |
| | | protected void checkSyntax(ArrayList<LocalizableMessage> errors) |
| | | { |
| | | for (JLabel label : labels) |
| | | { |
| | |
| | | } |
| | | |
| | | JTextField[] requiredFields = {name}; |
| | | Message[] msgs = {ERR_CTRL_PANEL_NAME_OF_ORGANIZATION_REQUIRED.get()}; |
| | | LocalizableMessage[] msgs = {ERR_CTRL_PANEL_NAME_OF_ORGANIZATION_REQUIRED.get()}; |
| | | for (int i=0; i<requiredFields.length; i++) |
| | | { |
| | | String v = requiredFields[i].getText().trim(); |
| | |
| | | private void createLayout() |
| | | { |
| | | GridBagConstraints gbc = new GridBagConstraints(); |
| | | Message[] ls = { |
| | | LocalizableMessage[] ls = { |
| | | INFO_CTRL_PANEL_NEW_ORGANIZATION_NAME_LABEL.get(), |
| | | INFO_CTRL_PANEL_NEW_ORGANIZATION_DESCRIPTION_LABEL.get(), |
| | | INFO_CTRL_PANEL_NEW_ORGANIZATION_ENTRY_DN_LABEL.get()}; |
| | | int i = 0; |
| | | for (Message l : ls) |
| | | for (LocalizableMessage l : ls) |
| | | { |
| | | labels[i].setText(l.toString()); |
| | | i++; |