package de.ivu.elect.presentation.internet.action;

import java.util.ArrayList;
import java.util.List;

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

import de.ivu.elect.business.internet.entity.InternetWidgetFileEntity;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(InternetWidgetFileActionMenu.COMPONENT_NAME)
public class InternetWidgetFileActionMenu extends AbstractActionMenuModelBuilder<InternetWidgetFileEntity> {

  public static final String COMPONENT_NAME = "internetWidgetFileActionMenu";

  private static final long serialVersionUID = 1L;

  @Inject
  private transient InternetWidgetFileEditAction editAction;

  @Inject
  private transient InternetWidgetFileDeleteAction deleteAction;

  public InternetWidgetFileActionMenu() {
    super();
  }

  @Override
  protected List<ActionEntry<InternetWidgetFileEntity>> getActionEntriesSorted() {
    List<ActionEntry<InternetWidgetFileEntity>> result = new ArrayList<>();

    result.add(editAction);
    result.add(deleteAction);

    return result;
  }
}
