
package de.ivu.elect.presentation.wertelisten.menu;

import javax.inject.Inject;

import de.ivu.elect.business.wertelisten.entity.WertelistenMeta;
import de.ivu.elect.jee.entity.Meta;
import de.ivu.elect.presentation.exchange.ExportDescription;
import de.ivu.elect.presentation.exchange.menu.AbstractExportMenuItemEntry;
import de.ivu.elect.presentation.wertelisten.exchange.WertelistenExportDescription;

public class WertelistenExportMenuItemEntry extends AbstractExportMenuItemEntry {

  private static final long serialVersionUID = 1L;

  @Inject
  private WertelistenMeta wertelistenMeta;

  @Inject
  private WertelistenExportDescription wertelistenExportDescription;

  @Override
  protected ExportDescription getExportDescription() {
    return wertelistenExportDescription;
  }

  @Override
  public boolean isRendered() {
    return isWahlSelected() && super.isRendered();
  }

  @Override
  protected Meta getMeta() {
    return wertelistenMeta;
  }
}
