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

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

import javax.faces.event.ActionListener;

import org.primefaces.model.menu.DefaultMenuItem;

public class IVUDefaultMenuItem extends DefaultMenuItem {

  private static final long serialVersionUID = 1L;

  private final List<ActionListener> actionListeners;

  public IVUDefaultMenuItem() {
    super();

    this.actionListeners = new ArrayList<>();
  }

  public List<ActionListener> getActionListeners() {
    return actionListeners;
  }

  public void addActionListener(ActionListener actionListener) {
    this.actionListeners.add(actionListener);
  }
}
