package de.superx.rest.model; import java.util.ArrayList; import java.util.List; public class Column { public String field; public String header; public ColumnType type; public String aggregation; public boolean groupable = false; public List items = new ArrayList(); public boolean visibleInSimplifiedTable = true; public boolean hidden = false; public boolean isTotalColumn = false; public String refColumnField; public Column(String field, String header, ColumnType type) { this.field = field; this.header = header; this.type = type; } public Column(String field, String header) { this.field = field; this.header = header; } public Column(String field, String header, ColumnType type, boolean groupable) { this.field = field; this.header = header; this.type = type; this.groupable = groupable; } public Column(String field, String header, ColumnType type, boolean groupable, String refColumnField, boolean hidden) { this.field = field; this.header = header; this.groupable = groupable; this.type = type; this.refColumnField = refColumnField; this.hidden = hidden; } public Column() {} public void markAsGroupable() { this.groupable = true; } public void setItems(List items) { this.items = items; } public void setHidden(boolean hidden) { this.hidden = hidden; } public void setTotalColumn(boolean isTotalColumn) { this.isTotalColumn = isTotalColumn; } }