Package org.apache.ofbiz.htmlreport
Class AbstractHtmlReport
- java.lang.Object
-
- org.apache.ofbiz.htmlreport.AbstractReport
-
- org.apache.ofbiz.htmlreport.HtmlReport
-
- org.apache.ofbiz.htmlreport.AbstractHtmlReport
-
- All Implemented Interfaces:
InterfaceReport
- Direct Known Subclasses:
PricatParseExcelHtmlReport
,SampleHtmlReport
public abstract class AbstractHtmlReport extends HtmlReport
HTML report output to be used for database create tables / drop tables operations.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_REPORT_OUTPUT
static java.lang.String
module
static java.lang.String
THREAD_TYPE
-
Fields inherited from class org.apache.ofbiz.htmlreport.HtmlReport
BUTTON_ADVANCED, BUTTON_BACK, BUTTON_CANCEL, BUTTON_CLOSE, BUTTON_CONTINUE, BUTTON_DETAILS, BUTTON_DISCARD, BUTTON_DOWNLOAD, BUTTON_EDIT, BUTTON_OK, BUTTON_OK_NO_SUBMIT, BUTTON_SET, content, DELIMITER_RESOURCES, DIALOG_BACK, DIALOG_CANCEL, DIALOG_CONTINUE, DIALOG_SET, DIALOG_URI, FORM_URI, HTML_END, HTML_START, indexNext, isTransient, LINEBREAK, LINEBREAK_TRADITIONAL, logContent, logFile, logFileName, logFileOutputStream, PARAM_RESOURCELIST, paramAction, paramRefreshWorkplace, paramReportContinueKey, paramResource, paramResourcelist, paramThread, paramThreadHasNext, paramTitle, resource, resourceList, sequenceNum, showExceptionStackTrace, writeHtml
-
Fields inherited from class org.apache.ofbiz.htmlreport.AbstractReport
SESSION_REPORT_CLASS
-
Fields inherited from interface org.apache.ofbiz.htmlreport.InterfaceReport
FORMAT_DEFAULT, FORMAT_ERROR, FORMAT_HEADLINE, FORMAT_NOTE, FORMAT_OK, FORMAT_WARNING, REPORT_TYPE_EXTENDED, REPORT_TYPE_SIMPLE
-
-
Constructor Summary
Constructors Constructor Description AbstractHtmlReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Constructs a new report using the provided locale for the output language.AbstractHtmlReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean writeHtml, boolean isTransient)
Constructs a new report using the provided locale for the output language.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static java.lang.String
checkButton(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
abstract InterfaceReportThread
initializeThread(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String name)
Initializes the report thread to use for this report.void
prepareDisplayReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String name, java.lang.String dialogUri)
Prepare display an html report.void
setDialogRealUri(javax.servlet.http.HttpServletRequest request, java.lang.String dialogUri)
Set the report dialog uri.-
Methods inherited from class org.apache.ofbiz.htmlreport.HtmlReport
addLogFile, appendDelimiter, bodyEnd, bodyStart, closeLogFile, dialog, dialogButtonRow, dialogButtons, dialogButtonsContinue, dialogButtonsHtml, dialogButtonsOkCancel, dialogButtonsOkCancelDownload, dialogContent, dialogContentEnd, dialogContentStart, dialogEnd, dialogHead, dialogScriptSubmit, dialogStart, getDialogRealUri, getFormRealUri, getInstance, getInstance, getInstance, getLineBreak, getLogFileName, getParamAction, getParamRefreshWorkplace, getParamReportContinueKey, getParamResource, getParamResourcelist, getParamThread, getParamThreadHasNext, getParamTitle, getReportUpdate, getResourceList, getResourceListAsParam, getSequenceNum, htmlEnd, htmlStart, htmlStart, isAlive, isMultiOperation, isWriteHtml, pageBody, pageHtml, pageHtml, pageHtmlStyle, paramsAsHidden, paramsAsHidden, paramValues, print, println, println, printMessageWithParam, printMessageWithParam, reportConclusionText, reportIntroductionText, setFormRealUri, setParamAction, setParamThread, setSequenceNum
-
Methods inherited from class org.apache.ofbiz.htmlreport.AbstractReport
addError, addWarning, formatRuntime, getErrors, getLocale, getRuntime, getWarnings, hasError, hasWarning, init, print, println, println, resetRuntime
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
THREAD_TYPE
public static final java.lang.String THREAD_TYPE
- See Also:
- Constant Field Values
-
FILE_REPORT_OUTPUT
public static final java.lang.String FILE_REPORT_OUTPUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractHtmlReport
public AbstractHtmlReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Constructs a new report using the provided locale for the output language.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponse
-
AbstractHtmlReport
public AbstractHtmlReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean writeHtml, boolean isTransient)
Constructs a new report using the provided locale for the output language.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponsewriteHtml
- iftrue
, this report should generate HTML instead of JavaScript outputisTransient
- If set totrue
nothing is kept in memory
-
-
Method Detail
-
prepareDisplayReport
public void prepareDisplayReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String name, java.lang.String dialogUri) throws java.io.IOException
Prepare display an html report.- Throws:
java.io.IOException
-
initializeThread
public abstract InterfaceReportThread initializeThread(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String name)
Initializes the report thread to use for this report.- Returns:
- the reported thread to use for this report.
-
setDialogRealUri
public void setDialogRealUri(javax.servlet.http.HttpServletRequest request, java.lang.String dialogUri)
Set the report dialog uri.- Parameters:
dialogUri
-
-
checkButton
public static java.lang.String checkButton(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-