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

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import de.ivu.elect.business.gebietsbaum.entity.Gebiet;
import de.ivu.elect.jee.presentation.dynamictable.AbstractColumnBuilder;
import de.ivu.elect.jee.presentation.dynamictable.ColumnEntry;

@Named(GebietColumnBuilder.COMPONENT_NAME)
public class GebietColumnBuilder extends AbstractColumnBuilder<Gebiet> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "gebietColumnBuilder";

  @Inject
  private transient GebietColumnBuilderHelper gebietColumnBuilderHelper;

  public GebietColumnBuilder() {
    super();
  }

  @Override
  protected void initColumns() {
    gebietColumnBuilderHelper.initColumns();
  }

  @Override
  protected List<ColumnEntry< ? super Gebiet>> getColumnEntriesSorted() {
    return gebietColumnBuilderHelper.getColumnEntriesSorted();
  }
}
