public interface IReportContext
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
PAGE_VAR_PAGE_LABEL |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel()
cancel the current engine task
|
void |
cancel(java.lang.String reason)
cancel the current engine task
|
void |
deleteGlobalVariable(java.lang.String name)
Remove an object from runtime scope.
|
void |
deletePersistentGlobalVariable(java.lang.String name)
Remove an object from report document scope.
|
java.lang.Object |
evaluate(org.eclipse.birt.report.engine.ir.Expression script)
Evaluate the script.
|
java.lang.Object |
evaluate(java.lang.String script)
evaluate the script with default script language.
|
java.lang.Object |
evaluate(java.lang.String language,
java.lang.String script)
evaluate the script with specified script language.
|
java.util.Map |
getAppContext()
Get the application context
|
java.lang.ClassLoader |
getApplicationClassLoader()
get the application classLoader of the current report context
|
org.eclipse.birt.report.model.api.ReportDesignHandle |
getDesignHandle()
get the report design handle.
|
java.lang.Object |
getGlobalVariable(java.lang.String name)
Retireve an object from runtime scope.
|
java.lang.Object |
getHttpServletRequest()
Get the http servlet request object
|
java.util.Locale |
getLocale() |
java.lang.String |
getMessage(java.lang.String key)
Finds user-defined messages for the current thread's locale.
|
java.lang.String |
getMessage(java.lang.String key,
java.util.Locale locale)
Finds user-defined messages for the given locale.
|
java.lang.String |
getMessage(java.lang.String key,
java.util.Locale locale,
java.lang.Object[] params)
Finds user-defined messages for the given locale using parameters
First we look up in the report itself, then look into the referenced
message file.
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] params)
Finds user-defined messages for the current thread's locale using parameters
|
java.lang.String |
getOutputFormat() |
java.lang.Object |
getPageVariable(java.lang.String name) |
java.lang.Object |
getParameterDisplayText(java.lang.String name) |
java.lang.Object |
getParameterValue(java.lang.String name) |
java.lang.Object |
getPersistentGlobalVariable(java.lang.String name)
Retireve an object from report document scope.
|
org.eclipse.birt.report.engine.api.IRenderOption |
getRenderOption()
get the render options used to render the
report.
|
org.eclipse.birt.report.engine.api.IReportRunnable |
getReportRunnable()
return the report runnable used to create/render this report
|
java.net.URL |
getResource(java.lang.String resourceName)
get the URL for the resource.
|
java.lang.String |
getResourceRenderURL(java.lang.String resourceName)
get the render URL for a resource.
|
int |
getTaskType()
Get the type of the current task.
|
com.ibm.icu.util.TimeZone |
getTimeZone()
Get time zone informations.
|
boolean |
isReportDocumentFinished()
check if the report document generation is finished.
|
void |
setGlobalVariable(java.lang.String name,
java.lang.Object obj)
Add the object to runtime scope.
|
void |
setPageVariable(java.lang.String name,
java.lang.Object value) |
void |
setParameterDisplayText(java.lang.String name,
java.lang.String value) |
void |
setParameterValue(java.lang.String name,
java.lang.Object value) |
void |
setPersistentGlobalVariable(java.lang.String name,
java.io.Serializable obj)
Add the object to report document scope.
|
static final java.lang.String PAGE_VAR_PAGE_LABEL
org.eclipse.birt.report.engine.api.IReportRunnable getReportRunnable()
java.lang.Object getParameterValue(java.lang.String name)
name - void setParameterValue(java.lang.String name,
java.lang.Object value)
name - value - java.lang.Object getParameterDisplayText(java.lang.String name)
name - void setParameterDisplayText(java.lang.String name,
java.lang.String value)
name - value - java.util.Locale getLocale()
com.ibm.icu.util.TimeZone getTimeZone()
java.lang.String getOutputFormat()
org.eclipse.birt.report.engine.api.IRenderOption getRenderOption()
java.util.Map getAppContext()
java.lang.Object getHttpServletRequest()
void setGlobalVariable(java.lang.String name,
java.lang.Object obj)
void deleteGlobalVariable(java.lang.String name)
java.lang.Object getGlobalVariable(java.lang.String name)
void setPersistentGlobalVariable(java.lang.String name,
java.io.Serializable obj)
void deletePersistentGlobalVariable(java.lang.String name)
java.lang.Object getPersistentGlobalVariable(java.lang.String name)
java.lang.Object getPageVariable(java.lang.String name)
void setPageVariable(java.lang.String name,
java.lang.Object value)
java.lang.String getMessage(java.lang.String key)
key - resource key of the user-defined message.null if resoueceKey is blank.java.lang.String getMessage(java.lang.String key,
java.util.Locale locale)
First we look up in the report itself, then look into the referenced message file. Each search uses a reduced form of Java locale-driven search algorithm: Language&Country, language, default.
key - resource key of the user defined message.locale - locale of message, if the input locale is
null, the locale for the current thread will
be used instead.null if resoueceKey is blank.java.lang.String getMessage(java.lang.String key,
java.lang.Object[] params)
key - resource key of the user-defined message.params - string arguments used to format error messagesnull if resoueceKey is blank.java.lang.String getMessage(java.lang.String key,
java.util.Locale locale,
java.lang.Object[] params)
First we look up in the report itself, then look into the referenced message file. Each search uses a reduced form of Java locale-driven search algorithm: Language&Country, language, default.
key - resource key of the user defined message.locale - locale of message, if the input locale is
null, the locale for the current thread will
be used instead.params - string arguments used to format error messagesnull if resoueceKey is blank.int getTaskType()
org.eclipse.birt.report.model.api.ReportDesignHandle getDesignHandle()
java.net.URL getResource(java.lang.String resourceName)
resourceName - resource namejava.lang.String getResourceRenderURL(java.lang.String resourceName)
resourceName - resource namejava.lang.Object evaluate(java.lang.String script)
throws org.eclipse.birt.core.exception.BirtException
script - org.eclipse.birt.core.exception.BirtExceptionjava.lang.Object evaluate(java.lang.String language,
java.lang.String script)
throws org.eclipse.birt.core.exception.BirtException
language - script - org.eclipse.birt.core.exception.BirtExceptionjava.lang.Object evaluate(org.eclipse.birt.report.engine.ir.Expression script)
throws org.eclipse.birt.core.exception.BirtException
script - org.eclipse.birt.core.exception.BirtExceptionjava.lang.ClassLoader getApplicationClassLoader()
void cancel()
void cancel(java.lang.String reason)
boolean isReportDocumentFinished()
Copyright © 2008 Actuate Corp. All rights reserved.