本文整理匯總了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;
}