All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.excel.metadata.property.ColumnWidthProperty Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy