本文整理汇总了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;
}
示例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;
}
示例3: getPageOrientation
import ar.com.fdvs.dj.domain.constants.Page; //导入依赖的package包/类
public Page getPageOrientation() {
return pageOrientation;
}
示例4: setPageOrientation
import ar.com.fdvs.dj.domain.constants.Page; //导入依赖的package包/类
public void setPageOrientation(Page pageOrientation) {
this.pageOrientation = pageOrientation;
}