SuperX-Kernmodul
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.
 
 
 
 
 
 

62 lines
1.4 KiB

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<Item> items = new ArrayList<Item>();
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<Item> items) {
this.items = items;
}
public void setHidden(boolean hidden) {
this.hidden = hidden;
}
public void setTotalColumn(boolean isTotalColumn) {
this.isTotalColumn = isTotalColumn;
}
}