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

com.github.yiuman.citrus.support.model.Header Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
package com.github.yiuman.citrus.support.model;

import lombok.Builder;
import lombok.Data;

/**
 * 表头
 *
 * @author yiuman
 * @date 2020/5/7
 */
@Builder(toBuilder = true)
@Data
public class Header {

    /**
     * 文本
     */
    private String text;

    /**
     * 字段名
     */
    private String value;

    @Builder.Default
    private Align align = Align.start;

    @Builder.Default
    private Boolean sortable = false;

    private Integer width;

    private boolean hidden;

    /**
     * 排列格式
     */
    public enum Align {

        /**
         * 排头
         */
        start,

        /**
         * 居中
         */
        center,

        /**
         * 排尾
         */
        end
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy