当前位置: 首页>>代码示例>>Java>>正文


Java PageType类代码示例

本文整理汇总了Java中net.sf.dynamicreports.report.constant.PageType的典型用法代码示例。如果您正苦于以下问题:Java PageType类的具体用法?Java PageType怎么用?Java PageType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PageType类属于net.sf.dynamicreports.report.constant包,在下文中一共展示了PageType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);
	TextColumnBuilder<Double> column4 = col.column("Column4", "field4", Double.class);

	measure1 = ctab.measure(column3, Calculation.SUM);
	measure2 = ctab.measure(column4, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.headerCell(cmp.text("Header"), cmp.text("Header2"))
		.setCellHeight(20)
		.rowGroups(
			rowGroup = ctab.rowGroup(column1).setTotalHeaderHeight(30))
		.columnGroups(
			columnGroup = ctab.columnGroup(column2).setHeaderHeight(40))
		.measures(
			measure1, measure2);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.columns(column1, column2, column3, column4)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:25,代码来源:CrosstabPosition3Test.java

示例2: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	FieldBuilder<String> field1 = field("field1", String.class);
	FieldBuilder<String> field2 = field("field2", String.class);
	FieldBuilder<String> field3 = field("field3", String.class);
	FieldBuilder<String> field4 = field("field4", String.class);
	FieldBuilder<Integer> field5 = field("field5", Integer.class);

	measure1 = ctab.measure("measure1", field5, Calculation.SUM);
	measure2 = ctab.measure("measure2", field5, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.setDataSource(createCrosstabDataSource())
		.headerCell(cmp.text("Header"))
		.setCellWidth(20)
		.rowGroups(
			rowGroup1 = ctab.rowGroup(field1), rowGroup2 = ctab.rowGroup(field2))
		.columnGroups(
			columnGroup1 = ctab.columnGroup(field3), columnGroup2 = ctab.columnGroup(field4))
		.measures(
			 measure1, measure2);

	rb.setLocale(Locale.ENGLISH)
		.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE)
		.title(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:27,代码来源:CrosstabDataset1Test.java

示例3: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);

	rowGroup1 = ctab.rowGroup(column1).setHeaderWidth(22);
	measure1 = ctab.measure("measure1", column3, Calculation.SUM);
	measure2 = ctab.measure("measure2", column3, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.setCellWidth(100)
		.rowGroups(rowGroup1)
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column2))
		.measures(measure1, measure2);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:21,代码来源:CrosstabPosition8Test.java

示例4: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);

	rowGroup1 = ctab.rowGroup(column1).setShowTotal(false);
	measure1 = ctab.measure(column3, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.rowGroups(rowGroup1)
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column2))
		.measures(measure1);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:19,代码来源:CrosstabPosition10Test.java

示例5: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);
	TextColumnBuilder<Double> column4 = col.column("Column4", "field4", Double.class);

	measure1 = ctab.measure(column3, Calculation.SUM);
	measure2 = ctab.measure(column4, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.headerCell(cmp.text("Header"))
		.setCellWidth(200)
		.rowGroups(
			rowGroup = ctab.rowGroup(column1).setHeaderWidth(50))
		.columnGroups(
			columnGroup = ctab.columnGroup(column2).setTotalHeaderWidth(210))
		.measures(
			measure1, measure2);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.columns(column1, column2, column3, column4)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:25,代码来源:CrosstabPosition1Test.java

示例6: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);
	TextColumnBuilder<Double> column4 = col.column("Column4", "field4", Double.class);

	measure1 = ctab.measure(column3, Calculation.SUM);
	measure2 = ctab.measure(column4, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.headerCell(cmp.text("Header"))
		.rowGroups(
			rowGroup = ctab.rowGroup(column1))
		.columnGroups(
			columnGroup = ctab.columnGroup(column2))
		.measures(
			measure1, measure2);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.columns(column1, column2, column3, column4)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:24,代码来源:CrosstabPosition2Test.java

示例7: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field1", String.class);
	TextColumnBuilder<String> column3 = col.column("Column3", "field2", String.class);
	TextColumnBuilder<String> column4 = col.column("Column4", "field2", String.class);
	TextColumnBuilder<Integer> column5 = col.column("Column5", "field3", Integer.class);

	measure = ctab.measure("measure", column5, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.rowGroups(
			rowGroup1 = ctab.rowGroup(column1),
			rowGroup2 = ctab.rowGroup(column2).setShowTotal(false))
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column3),
			columnGroup2 = ctab.columnGroup(column4).setShowTotal(false))
		.measures(measure);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:23,代码来源:CrosstabPosition6Test.java

示例8: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);

	rowGroup1 = ctab.rowGroup(column1).setShowTotal(false);
	rowGroup2 = ctab.rowGroup(column1).setShowTotal(false).setHeaderWidth(25);
	measure1 = ctab.measure("measure1", column3, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.rowGroups(rowGroup1, rowGroup2)
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column2))
		.measures(measure1);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:20,代码来源:CrosstabPosition9Test.java

示例9: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	measure1 = ctab.measure("field3", Integer.class, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.setCellWidth(50)
		.rowGroups(
			rowGroup = ctab.rowGroup("field1", String.class))
		.columnGroups(
			columnGroup1 = ctab.columnGroup(new GroupExpression1()),
			columnGroup2 = ctab.columnGroup(new GroupExpression2()))
		.measures(
			measure1);

	rb.setLocale(Locale.ENGLISH)
		.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.fields(field("field2", Date.class))
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:20,代码来源:GroupExpressionCrosstabTest.java

示例10: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<String> column3 = col.column("Column3", "field3", String.class);
	TextColumnBuilder<String> column4 = col.column("Column4", "field4", String.class);
	TextColumnBuilder<Integer> column5 = col.column("Column5", "field5", Integer.class);

	measure1 = ctab.measure("measure1", column5, Calculation.SUM);
	measure2 = ctab.measure("measure2", column5, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.headerCell(cmp.text("Header"))
		.setCellWidth(20)
		.rowGroups(
			rowGroup1 = ctab.rowGroup(column1), rowGroup2 = ctab.rowGroup(column2))
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column3), columnGroup2 = ctab.columnGroup(column4))
		.measures(
			 measure1, measure2);

	rb.setLocale(Locale.ENGLISH)
		.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE)
		.columns(column1, column2, column3, column4, column5)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:27,代码来源:Crosstab2Test.java

示例11: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field1", String.class);
	TextColumnBuilder<String> column3 = col.column("Column3", "field2", String.class);
	TextColumnBuilder<Integer> column4 = col.column("Column4", "field3", Integer.class);
	TextColumnBuilder<Double> column5 = col.column("Column5", "field4", Double.class);

	measure1 = ctab.measure("measure1", column4, Calculation.SUM);
	measure2 = ctab.measure("measure2", column5, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.headerCell(cmp.text("Header"))
		.setCellWidth(100)
		.rowGroups(
			rowGroup = ctab.rowGroup(column1).setHeaderWidth(50))
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column2),
			columnGroup2 = ctab.columnGroup(column3))
		.measures(
			measure1, measure2);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:26,代码来源:CrosstabPosition5Test.java

示例12: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field2", String.class);
	TextColumnBuilder<Integer> column3 = col.column("Column3", "field3", Integer.class);
	TextColumnBuilder<Double> column4 = col.column("Column4", "field4", Double.class);

	measure1 = ctab.measure(column3, Calculation.SUM);
	measure2 = ctab.measure(column4, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.setCellWidth(80)
		.setCellHeight(30)
		.rowGroups(
			rowGroup = ctab.rowGroup(column1))
		.columnGroups(
			columnGroup = ctab.columnGroup(column2))
		.measures(
			measure1, measure2);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.columns(column1, column2, column3, column4)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:25,代码来源:CrosstabPosition4Test.java

示例13: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	TextColumnBuilder<String> column1 = col.column("Column1", "field1", String.class);
	TextColumnBuilder<String> column2 = col.column("Column2", "field1", String.class);
	TextColumnBuilder<String> column3 = col.column("Column3", "field2", String.class);
	TextColumnBuilder<String> column4 = col.column("Column4", "field2", String.class);
	TextColumnBuilder<Integer> column5 = col.column("Column5", "field3", Integer.class);

	measure = ctab.measure("measure", column5, Calculation.SUM);

	CrosstabBuilder crosstab = ctab.crosstab()
		.rowGroups(
			rowGroup1 = ctab.rowGroup(column1),
			rowGroup2 = ctab.rowGroup(column2).setShowTotal(false))
		.columnGroups(
			columnGroup1 = ctab.columnGroup(column3),
			columnGroup2 = ctab.columnGroup(column4).setShowTotal(false))
		.measures(measure)
		.setCellWidth(50)
		.setCellHeight(20);

	rb.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE)
		.summary(crosstab);
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:25,代码来源:CrosstabPosition7Test.java

示例14: configureReport

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
@Override
protected void configureReport(JasperReportBuilder rb) {
	rb.columns(
			column1 = col.column("Column1", "field1", Integer.class))
		.title(
			cmp.text(exp.jasperSyntax("$R{bundleKey3}", String.class)),
			cmp.multiPageList(
				cmp.text(exp.jasperSyntax("$R{bundleKey3}", String.class)),
				cmp.text(exp.jasperSyntax("$R{bundleKey1}", String.class))))
		.setLocale(Locale.ENGLISH)
		.setResourceBundle(new ResourceBundle())
		.setWhenResourceMissingType(WhenResourceMissingType.KEY)
		.setShowColumnTitle(false)
		.setShowColumnValues(false)
		.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE)
		.scriptlets(scriptlet = new ReportScriptlet())
		.parameters(parameter("parameter1", parameter1 = new BigDecimal(10)))
		.addParameter("parameter2", parameter2 = new BigDecimal(20));
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:20,代码来源:Report1Test.java

示例15: build

import net.sf.dynamicreports.report.constant.PageType; //导入依赖的package包/类
private void build() {
	try {
		report()
		  .setTemplate(Templates.reportTemplate)
		  .setPageFormat(PageType.A3, PageOrientation.LANDSCAPE)
		  .columns(
		  	col.booleanColumn("Boolean\ndefault", "boolean"),
		  	col.booleanColumn("Boolean\nTEXT_TRUE_FALSE", "boolean").setComponentType(BooleanComponentType.TEXT_TRUE_FALSE).setEmptyWhenNullValue(true),
		  	col.booleanColumn("Boolean\nTEXT_YES_NO", "boolean").setComponentType(BooleanComponentType.TEXT_YES_NO),
		  	col.booleanColumn("Boolean\nIMAGE_STYLE_1", "boolean").setComponentType(BooleanComponentType.IMAGE_STYLE_1).setEmptyWhenNullValue(true),
		  	col.booleanColumn("Boolean\nIMAGE_STYLE_2", "boolean").setComponentType(BooleanComponentType.IMAGE_STYLE_2),
		  	col.booleanColumn("Boolean\nIMAGE_STYLE_3", "boolean").setComponentType(BooleanComponentType.IMAGE_STYLE_3),
		  	col.booleanColumn("Boolean\nIMAGE_STYLE_4", "boolean").setComponentType(BooleanComponentType.IMAGE_STYLE_4),
		  	col.booleanColumn("Boolean\nIMAGE_CHECKBOX_1", "boolean").setComponentType(BooleanComponentType.IMAGE_CHECKBOX_1),
		  	col.booleanColumn("Boolean\nIMAGE_CHECKBOX_2", "boolean").setComponentType(BooleanComponentType.IMAGE_CHECKBOX_2),
		  	col.booleanColumn("Boolean\nIMAGE_BALL", "boolean").setComponentType(BooleanComponentType.IMAGE_BALL))
		  .title(Templates.createTitleComponent("BooleanColumn"))
		  .pageFooter(Templates.footerComponent)
		  .setDataSource(createDataSource())
		  .show();
	} catch (DRException e) {
		e.printStackTrace();
	}
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:25,代码来源:BooleanColumnReport.java


注:本文中的net.sf.dynamicreports.report.constant.PageType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。