public class LongestMatchColumnWidthStyleStrategy extends AbstractColumnWidthStyleStrategy
This is not very useful at the moment, for example if you have Numbers it will cause a newline.And the length is not exactly the same as the actual length.
| Constructor and Description |
|---|
LongestMatchColumnWidthStyleStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setColumnWidth(WriteSheetHolder writeSheetHolder,
List<WriteCellData<?>> cellDataList,
org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex,
Boolean isHead)
Sets the column width when head create
|
afterCellDispose, setColumnWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterCellCreate, afterCellCreate, afterCellDataConverted, afterCellDataConverted, afterCellDispose, beforeCellCreate, beforeCellCreatepublic LongestMatchColumnWidthStyleStrategy()
protected void setColumnWidth(WriteSheetHolder writeSheetHolder, List<WriteCellData<?>> cellDataList, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead)
AbstractColumnWidthStyleStrategysetColumnWidth in class AbstractColumnWidthStyleStrategyCopyright © 2018–2024 Alibaba Group. All rights reserved.