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

dev.zhengxiang.component.antd.table.AntdColumn Maven / Gradle / Ivy

The newest version!
package dev.zhengxiang.component.antd.table;

/**
 * antd 表格结构
 */
public class AntdColumn {
    /**
     * 表格标题
     */
    private String title;

    /**
     * 字段名称
     */
    private String dataIndex;

    /**
     * key (需要唯一)
     * 通常和dataIndex保持一致
     */
    private String key;

    /* getter setter */
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDataIndex() {
        return dataIndex;
    }

    public void setDataIndex(String dataIndex) {
        this.dataIndex = dataIndex;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    /* constructor */
    public AntdColumn(String title, String dataIndex) {
        this.title = title;
        this.dataIndex = dataIndex;
        this.key = dataIndex;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy