public class HtmlProgressMessageFormatter extends Object implements ProgressMessageFormatter
| Constructor and Description |
|---|
HtmlProgressMessageFormatter() |
| Modifier and Type | Method and Description |
|---|---|
LocalizableMessage |
getFormattedAfterUrlClick(String url,
LocalizableMessage lastText)
Returns the log HTML representation after the user has clicked on a url.
|
LocalizableMessage |
getFormattedDone()
Returns the HTML representation of the 'Done' text string.
|
LocalizableMessage |
getFormattedError()
Returns the HTML representation of the 'Error' text string.
|
LocalizableMessage |
getFormattedError(LocalizableMessage text,
boolean applyMargin)
Returns the HTML representation of an error for a given text.
|
LocalizableMessage |
getFormattedError(Throwable t,
boolean applyMargin)
Returns the HTML representation of an error message for a given throwable.
|
LocalizableMessage |
getFormattedLog(LocalizableMessage text)
Returns the HTML representation of a log message for a given text.
|
LocalizableMessage |
getFormattedLogError(LocalizableMessage text)
Returns the HTML representation of a log error message for a given
text.
|
LocalizableMessage |
getFormattedPoint()
Returns the formatted representation of a point.
|
LocalizableMessage |
getFormattedProgress(LocalizableMessage text)
Returns the formatted representation of a progress message for a given
text.
|
LocalizableMessage |
getFormattedSuccess(LocalizableMessage text)
Returns the HTML representation of a success message for a given text.
|
LocalizableMessage |
getFormattedSummary(LocalizableMessage text)
Returns the HTML representation of the text that is the summary of the
installation process (the one that goes in the UI next to the progress
bar).
|
LocalizableMessage |
getFormattedText(LocalizableMessage text)
Returns the HTML representation of the text without providing any style.
|
LocalizableMessage |
getFormattedWarning(LocalizableMessage text,
boolean applyMargin)
Returns the HTML representation of a warning for a given text.
|
LocalizableMessage |
getFormattedWithPoints(LocalizableMessage text)
Returns the HTML representation of the argument text to which we add
points.
|
LocalizableMessage |
getLineBreak()
Returns the line break in HTML.
|
LocalizableMessage |
getSpace()
Returns the formatted representation of a space.
|
LocalizableMessage |
getTab()
Returns the tab in HTML.
|
LocalizableMessage |
getTaskSeparator()
Returns the task separator in HTML.
|
public HtmlProgressMessageFormatter()
public LocalizableMessage getFormattedText(LocalizableMessage text)
getFormattedText in interface ProgressMessageFormattertext - the source text from which we want to get the HTML
representationpublic LocalizableMessage getFormattedSummary(LocalizableMessage text)
getFormattedSummary in interface ProgressMessageFormattertext - the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(LocalizableMessage text, boolean applyMargin)
getFormattedError in interface ProgressMessageFormattertext - the source text from which we want to get the HTML
representationapplyMargin - specifies whether we apply a margin or not to the
resulting HTML.public LocalizableMessage getFormattedWarning(LocalizableMessage text, boolean applyMargin)
getFormattedWarning in interface ProgressMessageFormattertext - the source text from which we want to get the HTML
representationapplyMargin - specifies whether we apply a margin or not to the
resulting HTML.public LocalizableMessage getFormattedSuccess(LocalizableMessage text)
getFormattedSuccess in interface ProgressMessageFormattertext - the source text from which we want to get the HTML
representationpublic LocalizableMessage getFormattedLogError(LocalizableMessage text)
getFormattedLogError in interface ProgressMessageFormattertext - the source text from which we want to get the HTML
representationpublic LocalizableMessage getFormattedLog(LocalizableMessage text)
getFormattedLog in interface ProgressMessageFormattertext - the source text from which we want to get the HTML
representationpublic LocalizableMessage getFormattedDone()
getFormattedDone in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedError()
getFormattedError in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedWithPoints(LocalizableMessage text)
getFormattedWithPoints in interface ProgressMessageFormattertext - the String to which add points.public LocalizableMessage getFormattedPoint()
getFormattedPoint in interface ProgressMessageFormatterpublic LocalizableMessage getSpace()
getSpace in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedProgress(LocalizableMessage text)
getFormattedProgress in interface ProgressMessageFormattertext - the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(Throwable t, boolean applyMargin)
true.getFormattedError in interface ProgressMessageFormattert - the throwable.applyMargin - specifies whether we apply a margin or not to the
resulting HTML.public LocalizableMessage getLineBreak()
getLineBreak in interface ProgressMessageFormatterpublic LocalizableMessage getTab()
getTab in interface ProgressMessageFormatterpublic LocalizableMessage getTaskSeparator()
getTaskSeparator in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedAfterUrlClick(String url, LocalizableMessage lastText)
getFormattedAfterUrlClick in interface ProgressMessageFormatterurl - that has been clickedlastText - the HTML representation of the log before clicking on the
url.getErrorWithStackHtml(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.