|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectar.com.fdvs.dj.util.ExpressionUtils
public class ExpressionUtils
| Constructor Summary | |
|---|---|
ExpressionUtils()
|
|
| Method Summary | |
|---|---|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createAndRegisterExpression(DynamicJasperDesign design,
String name,
CustomExpression expression)
|
static String |
createCustomExpressionInvocationText(CustomExpression customExpression,
String customExpName)
If you register a CustomExpression with the name "customExpName", then this will create the text needed to invoke it in a JRDesignExpression |
static String |
createCustomExpressionInvocationText2(String customExpName)
Same as regular, but instead of invoking directly $P{REPORT_SCRIPTLET}, it does through the $P{REPORT_PARAMETERS_MAP} |
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(net.sf.jasperreports.engine.design.JasperDesign jasperDesign,
SubreportParameter sp)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(String text,
Class clazz)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(String name,
CustomExpression expression)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(String text,
String className)
|
static String |
createParameterName(String preffix,
Object obj)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createStringExpression(String text)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
getConnectionExpression(DJDataSource ds)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
getDataSourceExpression(DJDataSource ds)
Returns the expression string required |
protected static String |
getDataSourceTypeStr(int datasourceType)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
getExpressionForConditionalStyle(ConditionalStyle condition,
String columExpression)
|
static String |
getFieldsMapExpression(Collection columnsAndFields)
|
static String |
getInitialValueExpressionForOperation(DJCalculation calc,
ColumnProperty prop)
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
getParameterExpression(Subreport sr)
Returns an expression that points to a java.util.Map object with the parameters to be used during the subreport fill time. |
static String |
getParametersMapExpression()
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
getReportConnectionExpression()
Returns a JRDesignExpression that points to the main report connection |
static String |
getTextForFieldsFromScriptlet()
|
static String |
getTextForParametersFromScriptlet()
|
static String |
getTextForVariablesFromScriptlet()
|
static String |
getValueClassNameForOperation(DJCalculation calc,
ColumnProperty prop)
|
static String |
getVariablesMapExpression(Collection variables)
Collection of JRVariable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionUtils()
| Method Detail |
|---|
public static net.sf.jasperreports.engine.design.JRDesignExpression getParameterExpression(Subreport sr)
sr -
public static net.sf.jasperreports.engine.design.JRDesignExpression getDataSourceExpression(DJDataSource ds)
ds -
public static net.sf.jasperreports.engine.design.JRDesignExpression getConnectionExpression(DJDataSource ds)
public static net.sf.jasperreports.engine.design.JRDesignExpression getReportConnectionExpression()
protected static String getDataSourceTypeStr(int datasourceType)
public static net.sf.jasperreports.engine.design.JRDesignExpression createStringExpression(String text)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(String text,
Class clazz)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(String text,
String className)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(net.sf.jasperreports.engine.design.JasperDesign jasperDesign,
SubreportParameter sp)
public static net.sf.jasperreports.engine.design.JRDesignExpression createAndRegisterExpression(DynamicJasperDesign design,
String name,
CustomExpression expression)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(String name,
CustomExpression expression)
public static String getFieldsMapExpression(Collection columnsAndFields)
Collection - of ColumnProperty
public static String getVariablesMapExpression(Collection variables)
variables -
public static String getParametersMapExpression()
public static String createParameterName(String preffix,
Object obj)
public static String createCustomExpressionInvocationText(CustomExpression customExpression,
String customExpName)
customExpName -
public static String createCustomExpressionInvocationText2(String customExpName)
customExpName -
public static String getTextForVariablesFromScriptlet()
public static String getTextForParametersFromScriptlet()
public static String getTextForFieldsFromScriptlet()
public static String getValueClassNameForOperation(DJCalculation calc,
ColumnProperty prop)
public static String getInitialValueExpressionForOperation(DJCalculation calc,
ColumnProperty prop)
public static net.sf.jasperreports.engine.design.JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition,
String columExpression)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||