
package de.ivu.elect.presentation.konfiguration.table;

import de.ivu.elect.business.konfiguration.entity.CustomParameter;
import de.ivu.elect.jee.faces.Messages;
import de.ivu.elect.jee.presentation.dynamictable.ColumnType;
import de.ivu.elect.presentation.table.DefaultColumnEntry;

public class CustomParameterKategorieColumn<E extends CustomParameter< ? >> extends DefaultColumnEntry<E> {

  private static final long serialVersionUID = 1L;

  public CustomParameterKategorieColumn(Messages messages) {
    super("CustomParameter-Kategorie", messages, "custom.parameter.kategorie", ColumnType.ENUM,
        parameter -> parameter.getTemplate().map(template -> template.getKategorie()).orElse(null));
  }
}
