|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.JRAbstractScriptlet
public abstract class JRAbstractScriptlet
Defines an abstract representation of a report scriptlet. Scriptlets are useful when a specific behavior is needed in certain moments of the report filling process, such as report, column or group initialization. Scriptlets must implement the abstract methods that define the behavior at the specified moments.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,JRFillField> |
fieldsMap
|
protected JRFillGroup[] |
groups
|
protected java.util.Map<java.lang.String,JRFillParameter> |
parametersMap
|
protected java.util.Map<java.lang.String,JRFillVariable> |
variablesMap
|
Constructor Summary | |
---|---|
JRAbstractScriptlet()
|
Method Summary | |
---|---|
abstract void |
afterColumnInit()
Called after each column is initialized. |
abstract void |
afterDetailEval()
Called after evaluating each detail. |
abstract void |
afterGroupInit(java.lang.String groupName)
Called after a group is initialized. |
abstract void |
afterPageInit()
Called after each page is initialized. |
abstract void |
afterReportInit()
Called after the report is initialized. |
abstract void |
beforeColumnInit()
Called before each column is initialized. |
abstract void |
beforeDetailEval()
Called before evaluating each detail. |
abstract void |
beforeGroupInit(java.lang.String groupName)
Called before a group is initialized. |
abstract void |
beforePageInit()
Called before each page is initialized. |
abstract void |
beforeReportInit()
Called before the report is initialized. |
void |
callAfterColumnInit()
|
void |
callAfterDetailEval()
|
void |
callAfterGroupInit()
|
void |
callAfterPageInit()
|
void |
callAfterReportInit()
|
void |
callBeforeColumnInit()
|
void |
callBeforeDetailEval()
|
void |
callBeforeGroupInit()
|
void |
callBeforePageInit()
|
void |
callBeforeReportInit()
|
java.lang.Object |
getFieldValue(java.lang.String fieldName)
|
java.lang.Object |
getParameterValue(java.lang.String parameterName)
|
java.lang.Object |
getParameterValue(java.lang.String parameterName,
boolean mustBeDeclared)
|
java.lang.Object |
getVariableValue(java.lang.String variableName)
|
void |
setData(java.util.Map<java.lang.String,JRFillParameter> parsm,
java.util.Map<java.lang.String,JRFillField> fldsm,
java.util.Map<java.lang.String,JRFillVariable> varsm,
JRFillGroup[] grps)
|
void |
setVariableValue(java.lang.String variableName,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,JRFillParameter> parametersMap
protected java.util.Map<java.lang.String,JRFillField> fieldsMap
protected java.util.Map<java.lang.String,JRFillVariable> variablesMap
protected JRFillGroup[] groups
Constructor Detail |
---|
public JRAbstractScriptlet()
Method Detail |
---|
public void setData(java.util.Map<java.lang.String,JRFillParameter> parsm, java.util.Map<java.lang.String,JRFillField> fldsm, java.util.Map<java.lang.String,JRFillVariable> varsm, JRFillGroup[] grps)
public java.lang.Object getParameterValue(java.lang.String parameterName) throws JRScriptletException
JRScriptletException
public java.lang.Object getParameterValue(java.lang.String parameterName, boolean mustBeDeclared) throws JRScriptletException
JRScriptletException
public java.lang.Object getFieldValue(java.lang.String fieldName) throws JRScriptletException
JRScriptletException
public java.lang.Object getVariableValue(java.lang.String variableName) throws JRScriptletException
JRScriptletException
public void setVariableValue(java.lang.String variableName, java.lang.Object value) throws JRScriptletException
JRScriptletException
public void callBeforeReportInit() throws JRScriptletException
JRScriptletException
public void callAfterReportInit() throws JRScriptletException
JRScriptletException
public void callBeforePageInit() throws JRScriptletException
JRScriptletException
public void callAfterPageInit() throws JRScriptletException
JRScriptletException
public void callBeforeColumnInit() throws JRScriptletException
JRScriptletException
public void callAfterColumnInit() throws JRScriptletException
JRScriptletException
public void callBeforeGroupInit() throws JRScriptletException
JRScriptletException
public void callAfterGroupInit() throws JRScriptletException
JRScriptletException
public void callBeforeDetailEval() throws JRScriptletException
JRScriptletException
public void callAfterDetailEval() throws JRScriptletException
JRScriptletException
public abstract void beforeReportInit() throws JRScriptletException
JRScriptletException
public abstract void afterReportInit() throws JRScriptletException
JRScriptletException
public abstract void beforePageInit() throws JRScriptletException
JRScriptletException
public abstract void afterPageInit() throws JRScriptletException
JRScriptletException
public abstract void beforeColumnInit() throws JRScriptletException
JRScriptletException
public abstract void afterColumnInit() throws JRScriptletException
JRScriptletException
public abstract void beforeGroupInit(java.lang.String groupName) throws JRScriptletException
groupName
- the group name
JRScriptletException
public abstract void afterGroupInit(java.lang.String groupName) throws JRScriptletException
groupName
- the group name
JRScriptletException
public abstract void beforeDetailEval() throws JRScriptletException
JRScriptletException
public abstract void afterDetailEval() throws JRScriptletException
JRScriptletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |