當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。