forked from fanruan/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
698 B
31 lines
698 B
package com.alibaba.excel.metadata.property; |
|
|
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|
|
|
/** |
|
* Configuration from annotations |
|
* |
|
* @author Jiaju Zhuang |
|
*/ |
|
public class ColumnWidthProperty { |
|
private Integer width; |
|
|
|
public ColumnWidthProperty(Integer width) { |
|
this.width = width; |
|
} |
|
|
|
public static ColumnWidthProperty build(ColumnWidth columnWidth) { |
|
if (columnWidth == null || columnWidth.value() < 0) { |
|
return null; |
|
} |
|
return new ColumnWidthProperty(columnWidth.value()); |
|
} |
|
|
|
public Integer getWidth() { |
|
return width; |
|
} |
|
|
|
public void setWidth(Integer width) { |
|
this.width = width; |
|
} |
|
}
|
|
|