54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
package com.adc.da.common;
|
|
|
|
/**
|
|
* @Description: table转excel 跨行元素元数据
|
|
* @Author: yangxuenan
|
|
* date: 2020/2/26 10:14
|
|
*/
|
|
public class CrossRangeCellMeta {
|
|
|
|
public CrossRangeCellMeta(int firstRowIndex, int firstColIndex, int rowSpan, int colSpan, boolean inHead) {
|
|
super();
|
|
this.firstRowIndex = firstRowIndex;
|
|
this.firstColIndex = firstColIndex;
|
|
this.rowSpan = rowSpan;
|
|
this.colSpan = colSpan;
|
|
this.inHead = inHead;
|
|
}
|
|
|
|
private int firstRowIndex;
|
|
private int firstColIndex;
|
|
private int rowSpan;// 跨越行数
|
|
private int colSpan;// 跨越列数
|
|
private boolean inHead;
|
|
|
|
public boolean isInHead() {
|
|
return inHead;
|
|
}
|
|
|
|
public CrossRangeCellMeta setInHead(boolean inHead) {
|
|
this.inHead = inHead;
|
|
return this;
|
|
}
|
|
|
|
public int getFirstRow() {
|
|
return firstRowIndex;
|
|
}
|
|
|
|
public int getLastRow() {
|
|
return firstRowIndex + rowSpan - 1;
|
|
}
|
|
|
|
public int getFirstCol() {
|
|
return firstColIndex;
|
|
}
|
|
|
|
public int getLastCol() {
|
|
return firstColIndex + colSpan - 1;
|
|
}
|
|
|
|
public int getColSpan() {
|
|
return colSpan;
|
|
}
|
|
}
|