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 IExcelColumn
autoSizeColumn
- the autoSizeColumn to setpublic boolean hasDefaultStyle()
public void setHasDefaultStyle(boolean hasDefaultStyle)
hasDefaultStyle
- the hasDefaultStyle to setpublic IExcelCellStyle getStyle()
getStyle
in interface IExcelColumn
public void setStyle(IExcelCellStyle style)
IExcelColumn
setStyle
in interface IExcelColumn
style
- the style to setpublic int getColumnIndex()
public ExcelCell getCell(int rowIndex)
IExcelColumn
getCell
in interface IExcelColumn
rowIndex
- public short getWidth()
public void setWidth(short width)
IExcelColumn
setWidth
in interface IExcelColumn
width
- the width to setpublic IExcelCell.CellType getCellType()
public void setCellType(IExcelCell.CellType cellType)
IExcelColumn
setCellType
in interface IExcelColumn
cellType
- the cellType to set