| | |
| | | |
| | | import org.opends.quicksetup.installer.InstallProgressDescriptor; |
| | | import org.opends.quicksetup.installer.InstallProgressStep; |
| | | import org.opends.quicksetup.installer.Installer; |
| | | import org.opends.quicksetup.util.HtmlProgressMessageFormatter; |
| | | import org.opends.quicksetup.util.ProgressMessageFormatter; |
| | | |
| | | /** |
| | | * This panel is used to show the progress of the install or the uninstall. |
| | |
| | | |
| | | private String lastText; |
| | | |
| | | private ProgressMessageFormatter formatter; |
| | | |
| | | /** |
| | | * ProgressPanel constructor. |
| | | */ |
| | |
| | | if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) |
| | | { |
| | | String url = e.getURL().toString(); |
| | | String newText = Installer.getHtmlAfterUrlClick(url, lastText); |
| | | String newText = getFormatter().getFormattedAfterUrlClick(url, |
| | | lastText); |
| | | lastText = newText; |
| | | detailsTextArea.setText(lastText); |
| | | } |
| | |
| | | |
| | | return panel; |
| | | } |
| | | |
| | | /** |
| | | * Returns the formatter that will be used to display the messages in this |
| | | * panel. |
| | | * @return the formatter that will be used to display the messages in this |
| | | * panel. |
| | | */ |
| | | ProgressMessageFormatter getFormatter() |
| | | { |
| | | if (formatter == null) |
| | | { |
| | | formatter = new HtmlProgressMessageFormatter(); |
| | | } |
| | | return formatter; |
| | | } |
| | | } |