ar.com.fdvs.dj.domain.entities.SubreportParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of DynamicJasper Show documentation
Show all versions of DynamicJasper Show documentation
DynamicJasper (DJ) is an API that hides the complexity of Jasper
Reports, it helps developers to save time when designing
simple/medium complexity reports generating the layout of the
report elements automatically. It creates reports dynamically,
defining at runtime the columns, column width (auto width), groups,
variables, fonts, charts, crosstabs, sub reports (that can also be dynamic), page size
and everything else that you can define at design time.
DJ keeps full compatibility with Jasper Reports since
it's a tool that helps create reports programmatically in
a easy way (it only interferes with the creation of the report
design doing the layout of the elements).
You can use the classic .jrxml files as templates while the
content and layout of the report elements are handled by the DJ
API.
http://dynamicjasper.com
package ar.com.fdvs.dj.domain.entities;
import ar.com.fdvs.dj.core.DJConstants;
public class SubreportParameter implements Entity {
private String name;
private String expression;
private String className;
/**
* Subreport parameters are objects from the main report. In the main report
* they can come from field values, parameters or variables.
* Use {@link DJConstants}.SUBREPORT_PARAM_ORIGIN_FIELD,
* {@link DJConstants}.SUBREPORT_PARAM_ORIGIN_PARAMETER or
* {@link DJConstants}.SUBREPORT_PARAM_ORIGIN_VARIABLE to specify it.
*/
private int parameterOrigin = DJConstants.SUBREPORT_PARAM_ORIGIN_FIELD;
public int getParameterOrigin() {
return parameterOrigin;
}
public void setParameterOrigin(int parameterOrigin) {
this.parameterOrigin = parameterOrigin;
}
public SubreportParameter() {
super();
}
public SubreportParameter(String name, String expression, String className, int parameterOrigin) {
super();
this.name = name;
this.expression = expression;
this.className = className;
this.parameterOrigin = parameterOrigin;
}
public SubreportParameter(String name, String expression, String className) {
super();
this.name = name;
this.expression = expression;
this.className = className;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getExpression() {
return expression;
}
public void setExpression(String expression) {
this.expression = expression;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
}