001 package nl.cwi.sen1.gui; 002 003 import javax.swing.Action; 004 import javax.swing.JMenuItem; 005 006 import nl.cwi.sen1.configapi.types.Event; 007 008 public class MenuItem extends JMenuItem { 009 private Event event; 010 011 private Action action; 012 013 public MenuItem(Event event, Action action) { 014 this.event = event; 015 this.action = action; 016 } 017 018 public Event getEvent() { 019 return event; 020 } 021 022 public Action getAction() { 023 return action; 024 } 025 }