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

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

import javax.enterprise.inject.Specializes;
import javax.inject.Inject;

import de.ivu.elect.jee.presentation.menu.MenuEntry;
import de.ivu.elect.presentation.internet.menu.InternetWidgetSearchMenu;

@Specializes
public class WasInternetWidgetSearchMenu extends InternetWidgetSearchMenu {
  private static final long serialVersionUID = 1L;

  @Inject
  private transient InternetSeiteOeffnenMenuItemEntry internetSeiteOeffnenMenuItemEntry;

  @Override
  protected List<MenuEntry> getMenuEntriesSorted() {
    List<MenuEntry> menuEntriesSorted = new ArrayList<>(super.getMenuEntriesSorted());
    menuEntriesSorted.add(0, internetSeiteOeffnenMenuItemEntry);
    return menuEntriesSorted;
  }
}
