public class CmsHtmlReport extends A_CmsReport
| 限定符和类型 | 字段和说明 |
|---|---|
protected static java.lang.String |
LINEBREAK
Constant for a HTML linebreak with added "real" line break.
|
protected static java.lang.String |
LINEBREAK_TRADITIONAL
Constant for a HTML linebreak with added "real" line break-
traditional style for report threads that still use XML templates for their output.
|
FORMAT_DEFAULT, FORMAT_ERROR, FORMAT_HEADLINE, FORMAT_NOTE, FORMAT_OK, FORMAT_WARNING, REPORT_TYPE_EXTENDED, REPORT_TYPE_SIMPLE| 构造器和说明 |
|---|
CmsHtmlReport(java.util.Locale locale,
java.lang.String siteRoot)
Constructs a new report using the provided locale for the output language.
|
CmsHtmlReport(java.util.Locale locale,
java.lang.String siteRoot,
boolean writeHtml,
boolean isTransient)
Constructs a new report using the provided locale for the output language.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.String |
getLineBreak()
Returns the correct line break notation depending on the output style of this report.
|
java.lang.String |
getReportUpdate()
Updates this report, this processes all new output added since
the last call to this method.
|
boolean |
isWriteHtml()
Returns if the report writes html or javascript code.
|
void |
print(java.lang.String value,
int format)
Prints a String to the report, using the indicated formatting.
|
void |
println()
Adds a line break to the report.
|
void |
println(java.lang.Throwable t)
Adds an Exception to the report, ensuring that the Exception content is
processed to generate a valid output esp. for HTML pages.
|
addError, addWarning, formatRuntime, getErrors, getLastEntryTime, getLocale, getMessages, getRuntime, getSiteRoot, getWarnings, hasError, hasWarning, init, print, print, print, println, println, println, println, printMessageWithParam, printMessageWithParam, removeSiteRoot, resetRuntime, setLastEntryTimeprotected static final java.lang.String LINEBREAK
protected static final java.lang.String LINEBREAK_TRADITIONAL
public CmsHtmlReport(java.util.Locale locale,
java.lang.String siteRoot)
locale - the locale to use for the output languagesiteRoot - the site root of the user who started this report (may be null)public CmsHtmlReport(java.util.Locale locale,
java.lang.String siteRoot,
boolean writeHtml,
boolean isTransient)
locale - the locale to use for the output languagesiteRoot - the site root of the user who started this report (may be null)writeHtml - if true, this report should generate HTML instead of JavaScript outputisTransient - If set to true nothing is kept in memorypublic java.lang.String getReportUpdate()
I_CmsReportThis is only required in case the output is written to a HTML page, if the shell output is used, this will just return an empty String.
I_CmsReport.getReportUpdate()public boolean isWriteHtml()
true if the report writes html, and false if the report writes javascript codepublic void print(java.lang.String value,
int format)
A_CmsReport
Use the constants starting with FORMAT from this interface
to indicate which formatting to use.
print 在类中 A_CmsReportvalue - the message container to addformat - the formatting to use for the outputA_CmsReport.print(java.lang.String, int)public void println()
I_CmsReportpublic void println(java.lang.Throwable t)
I_CmsReportThe exception will be stored and the output will later be processed in a special way.
t - the exception to addI_CmsReport.println(java.lang.Throwable)protected java.lang.String getLineBreak()