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


Java Page类代码示例

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


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

示例1: getReportBuilder

import ar.com.fdvs.dj.domain.constants.Page; //导入依赖的package包/类
public DynamicReportBuilder getReportBuilder() {
	
	FastReportBuilder reportBuilder = new FastReportBuilder();
	reportBuilder.setWhenNoData(Constants.uiEmptyReport, null);
	reportBuilder.setPrintBackgroundOnOddRows((Boolean) printBackgroundOnOddRowsCheckBox.getValue());
	reportBuilder.setPrintColumnNames((Boolean) printColumnNamesCheckBox.getValue());
	reportBuilder.setUseFullPageWidth(true);
	
	try {
		Integer top = mmToPoints(new Float(marginTopTextField.getValue().toString()));
		Integer bottom = mmToPoints(new Float(marginBottomTextField.getValue().toString()));
		Integer left = mmToPoints(new Float(marginLeftTextField.getValue().toString()));
		Integer right = mmToPoints(new Float(marginRightTextField.getValue().toString()));
		
		Page page = new Page();
		page.setWidth(mmToPoints(new Float(pageWidthTextField.getValue().toString())));
		page.setHeight(mmToPoints(new Float(pageHeightTextField.getValue().toString())));
		
		if(page.getHeight() < 140 + top + bottom || page.getWidth() < left + right || page.getHeight() < 1 || page.getWidth() < 1 || top < 0 || bottom < 0 || left < 0 || right < 0) {
			throw new NumberFormatException();
		}
		
		reportBuilder.setPageSizeAndOrientation(page);
		reportBuilder.setColumnsPerPage(new Integer(columnsPerPageTextField.getValue().toString()));
		reportBuilder.setMargins(top, bottom, left, right);
		
	} catch(NumberFormatException e) {
		refreshButton.setComponentError(new UserError(Constants.uiReportConfigurationError));
	}
	
	return reportBuilder;
}
 
开发者ID:alejandro-du,项目名称:enterprise-app,代码行数:33,代码来源:AbstractReport.java

示例2: getReportBuilder

import ar.com.fdvs.dj.domain.constants.Page; //导入依赖的package包/类
public DynamicReportBuilder getReportBuilder() {
	
	FastReportBuilder reportBuilder = new FastReportBuilder();
	//reportBuilder.setWhenNoData(Constants.uiEmptyReport, null);
	reportBuilder.setPrintBackgroundOnOddRows((Boolean) printBackgroundOnOddRowsCheckBox.getValue());
	reportBuilder.setPrintColumnNames((Boolean) printColumnNamesCheckBox.getValue());
	reportBuilder.setUseFullPageWidth(true);
	
	try {
		Integer top = mmToPoints(new Float(marginTopTextField.getValue().toString()));
		Integer bottom = mmToPoints(new Float(marginBottomTextField.getValue().toString()));
		Integer left = mmToPoints(new Float(marginLeftTextField.getValue().toString()));
		Integer right = mmToPoints(new Float(marginRightTextField.getValue().toString()));
		
		Page page = new Page();
		page.setWidth(mmToPoints(new Float(pageWidthTextField.getValue().toString())));
		page.setHeight(mmToPoints(new Float(pageHeightTextField.getValue().toString())));
		
		if(page.getHeight() < 140 + top + bottom || page.getWidth() < left + right || page.getHeight() < 1 || page.getWidth() < 1 || top < 0 || bottom < 0 || left < 0 || right < 0) {
			throw new NumberFormatException();
		}
		
		reportBuilder.setPageSizeAndOrientation(page);
		reportBuilder.setColumnsPerPage(new Integer(columnsPerPageTextField.getValue().toString()));
		reportBuilder.setMargins(top, bottom, left, right);
		
	} catch(NumberFormatException e) {
		//refreshButton.setComponentError(new UserError(Constants.uiReportConfigurationError));
		return null;
	}
	
	return reportBuilder;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:34,代码来源:GridComponentReport.java

示例3: getPageOrientation

import ar.com.fdvs.dj.domain.constants.Page; //导入依赖的package包/类
public Page getPageOrientation() {
    return pageOrientation;
}
 
开发者ID:Tanaguru,项目名称:Tanaguru,代码行数:4,代码来源:LayoutBuilderImpl.java

示例4: setPageOrientation

import ar.com.fdvs.dj.domain.constants.Page; //导入依赖的package包/类
public void setPageOrientation(Page pageOrientation) {
    this.pageOrientation = pageOrientation;
}
 
开发者ID:Tanaguru,项目名称:Tanaguru,代码行数:4,代码来源:LayoutBuilderImpl.java


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