public abstract class AbstractCell extends java.lang.Object implements IMergedCell, IRowCell
| 限定符和类型 | 字段和说明 |
|---|---|
protected IWrapCellStyle |
cellStyle |
protected int |
firstColumnNum |
protected int |
firstRowNum |
protected java.lang.String |
id |
protected java.lang.Object |
label |
protected boolean |
labelSet
标记 label 属性 是否被设置
|
protected int |
lastColumnNum |
protected int |
lastRowNum |
protected boolean |
multiValue
value 是否为多值
|
protected Row |
row |
protected java.lang.Object |
value |
| 构造器和说明 |
|---|
AbstractCell(int firstRowNum,
int firstColumnNum,
int lastRowNum,
int lastColumnNum,
java.lang.Object value,
IWrapCellStyle cellStyle) |
AbstractCell(int firstRowNum,
int firstColumnNum,
java.lang.Object value,
IWrapCellStyle cellStyle) |
AbstractCell(Row row,
int firstColumnNum,
int lastColumnNum,
java.lang.Object value,
IWrapCellStyle cellStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
IWrapCellStyle |
getCellStyle()
cell style
|
java.lang.String |
getFirstColumnNo()
the first cell's column no, base A;
|
int |
getFirstColumnNum()
the first cell's column num, base 1
|
int |
getFirstRowNum()
the first cell's row num, base 1
|
java.lang.String |
getId() |
java.lang.Object |
getLabel()
单元格显示值
|
java.lang.String |
getLastColumnNo()
the last cell's column no, base 1; the last cell is at bottom right corner
|
int |
getLastColumnNum()
the last cell's column num, base 1; the last cell is at bottom right corner
|
int |
getLastRowNum()
the last cell's row num, base 1; the last cell is at bottom right corner
|
Row |
getRow()
the row that contains cell
|
java.lang.Object |
getValue()
单元格实际值
|
boolean |
isMultiValue()
实际值是否为多值; 若为true,单元格实际值应为 数组或者集合
|
void |
setCellStyle(IWrapCellStyle cellStyle)
设置单元格样式
|
void |
setLabel(java.lang.Object label)
设置cell显示
|
void |
setMultiValue(boolean multiValue) |
void |
setValue(java.lang.Object value)
设置cell值
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMergedprotected java.lang.String id
protected int firstRowNum
protected int firstColumnNum
protected int lastRowNum
protected int lastColumnNum
protected boolean multiValue
protected java.lang.Object value
protected java.lang.Object label
protected boolean labelSet
protected IWrapCellStyle cellStyle
protected Row row
public AbstractCell(int firstRowNum,
int firstColumnNum,
int lastRowNum,
int lastColumnNum,
java.lang.Object value,
IWrapCellStyle cellStyle)
public AbstractCell(int firstRowNum,
int firstColumnNum,
java.lang.Object value,
IWrapCellStyle cellStyle)
public AbstractCell(Row row, int firstColumnNum, int lastColumnNum, java.lang.Object value, IWrapCellStyle cellStyle)
public int getFirstRowNum()
ICellgetFirstRowNum 在接口中 ICellpublic int getLastRowNum()
IMergedCellgetLastRowNum 在接口中 IMergedCellpublic int getFirstColumnNum()
ICellgetFirstColumnNum 在接口中 ICellpublic int getLastColumnNum()
IMergedCellgetLastColumnNum 在接口中 IMergedCellpublic java.lang.String getFirstColumnNo()
ICellgetFirstColumnNo 在接口中 ICellpublic java.lang.String getLastColumnNo()
IMergedCellgetLastColumnNo 在接口中 IMergedCellpublic boolean isMultiValue()
ICellisMultiValue 在接口中 ICellpublic void setMultiValue(boolean multiValue)
public void setValue(java.lang.Object value)
ICellpublic void setLabel(java.lang.Object label)
ICellpublic IWrapCellStyle getCellStyle()
ICellgetCellStyle 在接口中 ICellIWrapCellStylepublic void setCellStyle(IWrapCellStyle cellStyle)
ICellsetCellStyle 在接口中 ICellcellStyle - 样式