/*
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
*/
|
package com.megatim.reporting.adhoc.pojo.layouts;
|
|
import com.megatim.reporting.adhoc.pojo.components.ValueElement;
|
import com.megatim.reporting.adhoc.pojo.enums.ReportOrientation;
|
import java.util.HashMap;
|
import java.util.Map;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
public class MainReport {
|
|
protected String name;
|
|
protected int pageHeight;
|
|
protected int pageWidth;
|
|
protected int rightMargin;
|
|
protected int topMargin;
|
|
protected int leftMargin;
|
|
protected int bottomMargin;
|
|
protected ReportOrientation orientation = ReportOrientation.PORTRAIT;
|
|
protected Map<String, ValueElement> parameters = new HashMap<>();
|
|
protected Map<String, ValueElement> fields = new HashMap<>();
|
|
protected Title title;
|
|
protected PageHeader pageHeader;
|
|
protected ColumnHeader columnHeader;
|
|
protected ColumnData columnData;
|
|
protected PageFooter pageFooter;
|
|
protected String whenNoDataType = "NoDataSection";
|
|
protected String whenResourceMissingType = "Key";
|
|
protected int columnWidth = 814;
|
|
protected boolean detail;
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public ReportOrientation getOrientation() {
|
return orientation;
|
}
|
|
public void setOrientation(ReportOrientation orientation) {
|
this.orientation = orientation;
|
}
|
|
public Map<String, ValueElement> getParameters() {
|
return parameters;
|
}
|
|
public void setParameters(Map<String, ValueElement> parameters) {
|
this.parameters = parameters;
|
}
|
|
public Map<String, ValueElement> getFields() {
|
return fields;
|
}
|
|
public void setFields(Map<String, ValueElement> fields) {
|
this.fields = fields;
|
}
|
|
public int getPageHeight() {
|
return pageHeight;
|
}
|
|
public void setPageHeight(int pageHeight) {
|
this.pageHeight = pageHeight;
|
}
|
|
public int getPageWidth() {
|
return pageWidth;
|
}
|
|
public void setPageWidth(int pageWidth) {
|
this.pageWidth = pageWidth;
|
}
|
|
public int getRightMargin() {
|
return rightMargin;
|
}
|
|
public void setRightMargin(int rightMargin) {
|
this.rightMargin = rightMargin;
|
}
|
|
public int getTopMargin() {
|
return topMargin;
|
}
|
|
public void setTopMargin(int topMargin) {
|
this.topMargin = topMargin;
|
}
|
|
public int getLeftMargin() {
|
return leftMargin;
|
}
|
|
public void setLeftMargin(int leftMargin) {
|
this.leftMargin = leftMargin;
|
}
|
|
public int getBottomMargin() {
|
return bottomMargin;
|
}
|
|
public void setBottomMargin(int bottomMargin) {
|
this.bottomMargin = bottomMargin;
|
}
|
|
public Title getTitle() {
|
return title;
|
}
|
|
public void setTitle(Title title) {
|
this.title = title;
|
}
|
|
public PageHeader getPageHeader() {
|
return pageHeader;
|
}
|
|
public void setPageHeader(PageHeader pageHeader) {
|
this.pageHeader = pageHeader;
|
}
|
|
public ColumnHeader getColumnHeader() {
|
return columnHeader;
|
}
|
|
public void setColumnHeader(ColumnHeader columnHeader) {
|
this.columnHeader = columnHeader;
|
}
|
|
public ColumnData getColumnData() {
|
return columnData;
|
}
|
|
public void setColumnData(ColumnData columnData) {
|
this.columnData = columnData;
|
}
|
|
public PageFooter getPageFooter() {
|
return pageFooter;
|
}
|
|
public void setPageFooter(PageFooter pageFooter) {
|
this.pageFooter = pageFooter;
|
}
|
|
public String getWhenNoDataType() {
|
return whenNoDataType;
|
}
|
|
public void setWhenNoDataType(String whenNoDataType) {
|
this.whenNoDataType = whenNoDataType;
|
}
|
|
public String getWhenResourceMissingType() {
|
return whenResourceMissingType;
|
}
|
|
public void setWhenResourceMissingType(String whenResourceMissingType) {
|
this.whenResourceMissingType = whenResourceMissingType;
|
}
|
|
public int getColumnWidth() {
|
return columnWidth;
|
}
|
|
public void setColumnWidth(int columnWidth) {
|
this.columnWidth = columnWidth;
|
}
|
|
public boolean isDetail() {
|
return detail;
|
}
|
|
public void setDetail(boolean detail) {
|
this.detail = detail;
|
}
|
|
}
|