| | |
| | | public class HtmlProgressMessageFormatter implements ProgressMessageFormatter |
| | | { |
| | | private String doneHtml; |
| | | private String errorHtml; |
| | | |
| | | /** |
| | | * The line break in HTML. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the HTML representation of the 'Error' text string. |
| | | * @return the HTML representation of the 'Error' text string. |
| | | */ |
| | | public String getFormattedError() { |
| | | if (errorHtml == null) |
| | | { |
| | | String html = getHtml(getMsg("progress-error")); |
| | | errorHtml = UIFactory.applyFontToHtml(html, |
| | | UIFactory.PROGRESS_ERROR_FONT); |
| | | } |
| | | return errorHtml; |
| | | } |
| | | |
| | | /** |
| | | * Returns the HTML representation of the argument text to which we add |
| | | * points. For instance if we pass as argument 'Configuring Server' the |
| | | * return value will be 'Configuring Server <B>.....</B>'. |