Package org.opends.quicksetup.util
Class HtmlProgressMessageFormatter
- java.lang.Object
-
- org.opends.quicksetup.util.HtmlProgressMessageFormatter
-
- All Implemented Interfaces:
ProgressMessageFormatter
public class HtmlProgressMessageFormatter extends Object implements ProgressMessageFormatter
This is an implementation of the ProgressMessageFormatter class that provides format in HTML.
-
-
Constructor Summary
Constructors Constructor Description HtmlProgressMessageFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.i18n.LocalizableMessagegetFormattedAfterUrlClick(String url, org.forgerock.i18n.LocalizableMessage lastText)Returns the log HTML representation after the user has clicked on a url.org.forgerock.i18n.LocalizableMessagegetFormattedDone()Returns the HTML representation of the 'Done' text string.org.forgerock.i18n.LocalizableMessagegetFormattedError()Returns the HTML representation of the 'Error' text string.org.forgerock.i18n.LocalizableMessagegetFormattedError(Throwable t, boolean applyMargin)Returns the HTML representation of an error message for a given throwable.org.forgerock.i18n.LocalizableMessagegetFormattedError(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Returns the HTML representation of an error for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedLog(org.forgerock.i18n.LocalizableMessage text)Returns the HTML representation of a log message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedLogError(org.forgerock.i18n.LocalizableMessage text)Returns the HTML representation of a log error message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedPoint()Returns the formatted representation of a point.org.forgerock.i18n.LocalizableMessagegetFormattedProgress(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of a progress message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedSuccess(org.forgerock.i18n.LocalizableMessage text)Returns the HTML representation of a success message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedSummary(org.forgerock.i18n.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).org.forgerock.i18n.LocalizableMessagegetFormattedText(org.forgerock.i18n.LocalizableMessage text)Returns the HTML representation of the text without providing any style.org.forgerock.i18n.LocalizableMessagegetFormattedWarning(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Returns the HTML representation of a warning for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedWithPoints(org.forgerock.i18n.LocalizableMessage text)Returns the HTML representation of the argument text to which we add points.org.forgerock.i18n.LocalizableMessagegetLineBreak()Returns the line break in HTML.org.forgerock.i18n.LocalizableMessagegetSpace()Returns the formatted representation of a space.org.forgerock.i18n.LocalizableMessagegetTab()Returns the tab in HTML.org.forgerock.i18n.LocalizableMessagegetTaskSeparator()Returns the task separator in HTML.
-
-
-
Method Detail
-
getFormattedText
public org.forgerock.i18n.LocalizableMessage getFormattedText(org.forgerock.i18n.LocalizableMessage text)
Returns the HTML representation of the text without providing any style.- Specified by:
getFormattedTextin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the HTML representation- Returns:
- the HTML representation for the given text.
-
getFormattedSummary
public org.forgerock.i18n.LocalizableMessage getFormattedSummary(org.forgerock.i18n.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).- Specified by:
getFormattedSummaryin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the HTML representation of the summary for the given text.
-
getFormattedError
public org.forgerock.i18n.LocalizableMessage getFormattedError(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Returns the HTML representation of an error for a given text.- Specified by:
getFormattedErrorin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the HTML representationapplyMargin- specifies whether we apply a margin or not to the resulting HTML.- Returns:
- the HTML representation of an error for the given text.
-
getFormattedWarning
public org.forgerock.i18n.LocalizableMessage getFormattedWarning(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Returns the HTML representation of a warning for a given text.- Specified by:
getFormattedWarningin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the HTML representationapplyMargin- specifies whether we apply a margin or not to the resulting HTML.- Returns:
- the HTML representation of a warning for the given text.
-
getFormattedSuccess
public org.forgerock.i18n.LocalizableMessage getFormattedSuccess(org.forgerock.i18n.LocalizableMessage text)
Returns the HTML representation of a success message for a given text.- Specified by:
getFormattedSuccessin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the HTML representation- Returns:
- the HTML representation of a success message for the given text.
-
getFormattedLogError
public org.forgerock.i18n.LocalizableMessage getFormattedLogError(org.forgerock.i18n.LocalizableMessage text)
Returns the HTML representation of a log error message for a given text.- Specified by:
getFormattedLogErrorin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the HTML representation- Returns:
- the HTML representation of a log error message for the given text.
-
getFormattedLog
public org.forgerock.i18n.LocalizableMessage getFormattedLog(org.forgerock.i18n.LocalizableMessage text)
Returns the HTML representation of a log message for a given text.- Specified by:
getFormattedLogin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the HTML representation- Returns:
- the HTML representation of a log message for the given text.
-
getFormattedDone
public org.forgerock.i18n.LocalizableMessage getFormattedDone()
Returns the HTML representation of the 'Done' text string.- Specified by:
getFormattedDonein interfaceProgressMessageFormatter- Returns:
- the HTML representation of the 'Done' text string.
-
getFormattedError
public org.forgerock.i18n.LocalizableMessage getFormattedError()
Returns the HTML representation of the 'Error' text string.- Specified by:
getFormattedErrorin interfaceProgressMessageFormatter- Returns:
- the HTML representation of the 'Error' text string.
-
getFormattedWithPoints
public org.forgerock.i18n.LocalizableMessage getFormattedWithPoints(org.forgerock.i18n.LocalizableMessage text)
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 .....'.- Specified by:
getFormattedWithPointsin interfaceProgressMessageFormatter- Parameters:
text- the String to which add points.- Returns:
- the HTML representation of the '.....' text string.
-
getFormattedPoint
public org.forgerock.i18n.LocalizableMessage getFormattedPoint()
Returns the formatted representation of a point.- Specified by:
getFormattedPointin interfaceProgressMessageFormatter- Returns:
- the formatted representation of the '.' text string.
-
getSpace
public org.forgerock.i18n.LocalizableMessage getSpace()
Returns the formatted representation of a space.- Specified by:
getSpacein interfaceProgressMessageFormatter- Returns:
- the formatted representation of the ' ' text string.
-
getFormattedProgress
public org.forgerock.i18n.LocalizableMessage getFormattedProgress(org.forgerock.i18n.LocalizableMessage text)
Returns the formatted representation of a progress message for a given text.- Specified by:
getFormattedProgressin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation of a progress message for the given text.
-
getFormattedError
public org.forgerock.i18n.LocalizableMessage getFormattedError(Throwable t, boolean applyMargin)
Returns the HTML representation of an error message for a given throwable. This method applies a margin if the applyMargin parameter istrue.- Specified by:
getFormattedErrorin interfaceProgressMessageFormatter- Parameters:
t- the throwable.applyMargin- specifies whether we apply a margin or not to the resulting HTML.- Returns:
- the HTML representation of an error message for the given exception.
-
getLineBreak
public org.forgerock.i18n.LocalizableMessage getLineBreak()
Returns the line break in HTML.- Specified by:
getLineBreakin interfaceProgressMessageFormatter- Returns:
- the line break in HTML.
-
getTab
public org.forgerock.i18n.LocalizableMessage getTab()
Returns the tab in HTML.- Specified by:
getTabin interfaceProgressMessageFormatter- Returns:
- the tab in HTML.
-
getTaskSeparator
public org.forgerock.i18n.LocalizableMessage getTaskSeparator()
Returns the task separator in HTML.- Specified by:
getTaskSeparatorin interfaceProgressMessageFormatter- Returns:
- the task separator in HTML.
-
getFormattedAfterUrlClick
public org.forgerock.i18n.LocalizableMessage getFormattedAfterUrlClick(String url, org.forgerock.i18n.LocalizableMessage lastText)
Returns the log HTML representation after the user has clicked on a url.- Specified by:
getFormattedAfterUrlClickin interfaceProgressMessageFormatter- Parameters:
url- that has been clickedlastText- the HTML representation of the log before clicking on the url.- Returns:
- the log HTML representation after the user has clicked on a url.
- See Also:
getErrorWithStackHtml(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
-
-