| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.ui; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | | import java.awt.Dimension; |
| | |
| | | |
| | | private JEditorPane detailsTextArea; |
| | | |
| | | private Message lastText; |
| | | private LocalizableMessage lastText; |
| | | |
| | | private JFrame parent; |
| | | |
| | | private JButton closeButton; |
| | | |
| | | private Message panelTitle = INFO_PROGRESS_TITLE.get(); |
| | | private LocalizableMessage panelTitle = INFO_PROGRESS_TITLE.get(); |
| | | |
| | | private ProgressMessageFormatter formatter = |
| | | new HtmlProgressMessageFormatter(); |
| | |
| | | * Returns the title of the panel. |
| | | * @return the title of the panel |
| | | */ |
| | | public Message getPanelTitle() |
| | | public LocalizableMessage getPanelTitle() |
| | | { |
| | | return panelTitle; |
| | | } |
| | |
| | | * Sets the text in the summary label. The text can be in HTML format. |
| | | * @param text the text to be set. |
| | | */ |
| | | public void setSummary(Message text) |
| | | public void setSummary(LocalizableMessage text) |
| | | { |
| | | if (text != null) { |
| | | progressBarLabel.setText(text.toString()); |
| | |
| | | * Sets the text in the details text pane. The text can be in HTML format. |
| | | * @param text the text to be set. |
| | | */ |
| | | public void setDetails(Message text) |
| | | public void setDetails(LocalizableMessage text) |
| | | { |
| | | if (text != null) { |
| | | detailsTextArea.setText(text.toString()); |
| | |
| | | gbc.weightx = 0.0; |
| | | gbc.gridwidth = GridBagConstraints.RELATIVE; |
| | | |
| | | Message title = getPanelTitle(); |
| | | LocalizableMessage title = getPanelTitle(); |
| | | |
| | | JLabel l = |
| | | UIFactory.makeJLabel(UIFactory.IconType.NO_ICON, title, |