public class ExcelColumn extends Object implements IExcelColumn
| Constructor and Description |
|---|
ExcelColumn(int columnIndex) |
| Modifier and Type | Method and Description |
|---|---|
ExcelCell |
getCell(int rowIndex)
Get cell in this column at given row index.
|
List<ExcelCell> |
getCells() |
IExcelCell.CellType |
getCellType() |
int |
getColumnIndex() |
IExcelCellStyle |
getStyle() |
short |
getWidth() |
boolean |
hasDefaultStyle() |
boolean |
isAutoSizeColumn() |
void |
setAutoSizeColumn(boolean autoSizeColumn) |
void |
setCellType(IExcelCell.CellType cellType)
Set cell type for each cell in this column
|
void |
setHasDefaultStyle(boolean hasDefaultStyle) |
void |
setStyle(IExcelCellStyle style)
Set default style for the whole column
|
void |
setWidth(short width)
Set width for each cell in this column
|
public boolean isAutoSizeColumn()
public void setAutoSizeColumn(boolean autoSizeColumn)
setAutoSizeColumn in interface IExcelColumnautoSizeColumn - the autoSizeColumn to setpublic boolean hasDefaultStyle()
public void setHasDefaultStyle(boolean hasDefaultStyle)
hasDefaultStyle - the hasDefaultStyle to setpublic IExcelCellStyle getStyle()
getStyle in interface IExcelColumnpublic void setStyle(IExcelCellStyle style)
IExcelColumnsetStyle in interface IExcelColumnstyle - the style to setpublic int getColumnIndex()
public ExcelCell getCell(int rowIndex)
IExcelColumngetCell in interface IExcelColumnrowIndex - public short getWidth()
public void setWidth(short width)
IExcelColumnsetWidth in interface IExcelColumnwidth - the width to setpublic IExcelCell.CellType getCellType()
public void setCellType(IExcelCell.CellType cellType)
IExcelColumnsetCellType in interface IExcelColumncellType - the cellType to set