| | |
| | | public class CustomerHandler extends AbstractColumnWidthStyleStrategy { |
| | | |
| | | private static final int MAX_COLUMN_WIDTH = 255; |
| | | //因为在自动列宽的过程中,有些设置地方让列宽显得紧凑,所以做出了个判断 |
| | | // 因为在自动列宽的过程中,有些设置地方让列宽显得紧凑,所以做出了个判断 |
| | | private static final int COLUMN_WIDTH = 20; |
| | | private Map<Integer, Map<Integer, Integer>> CACHE = new HashMap(8); |
| | | |
| | |
| | | if (maxColumnWidth == null || columnWidth > maxColumnWidth) { |
| | | ((Map) maxColumnWidthMap).put(cell.getColumnIndex(), columnWidth); |
| | | writeSheetHolder.getSheet() |
| | | .setColumnWidth(cell.getColumnIndex(), columnWidth * 256); |
| | | .setColumnWidth(cell.getColumnIndex(), columnWidth * 150); |
| | | } |
| | | } |
| | | } |