/** * Here: creates and adds a menuItem to the popup for every * Action in the list. Does nothing if * if the list is empty. * * PRE: actions != null. * * @param actions a list containing the actions to add to the popup. * Must not be null. * */ protected void addItems(List<? extends Action> actions) { ActionContainerFactory factory = new ActionContainerFactory(null); for (Action action : actions) { addItem(factory.createMenuItem(action)); } }
/** * Here: creates and adds a menuItem to the popup for every * Action in the list. Does nothing if * if the list is empty. * * PRE: actions != null. * * @param actions a list containing the actions to add to the popup. * Must not be null. * */ protected void addItems(List<? extends Action> actions) { ActionContainerFactory factory = new ActionContainerFactory(null); for (Action action : actions) { addItem(factory.createMenuItem(action)); } }
/** * Here: creates and adds a menuItem to the popup for every * Action in the list. Does nothing if * if the list is empty. * * PRE: actions != null. * * @param actions a list containing the actions to add to the popup. * Must not be null. * */ protected void addItems(List<? extends Action> actions) { ActionContainerFactory factory = new ActionContainerFactory(null); for (Action action : actions) { addItem(factory.createMenuItem(action)); } }
/** * Here: creates and adds a menuItem to the popup for every * Action in the list. Does nothing if * if the list is empty. * * PRE: actions != null. * * @param actions a list containing the actions to add to the popup. * Must not be null. * */ protected void addItems(List<? extends Action> actions) { ActionContainerFactory factory = new ActionContainerFactory(null); for (Action action : actions) { addItem(factory.createMenuItem(action)); } }
/** * Here: creates and adds a menuItem to the popup for every * Action in the list. Does nothing if * if the list is empty. * * PRE: actions != null. * * @param actions a list containing the actions to add to the popup. * Must not be null. * */ protected void addItems(List<? extends Action> actions) { ActionContainerFactory factory = new ActionContainerFactory(null); for (Action action : actions) { addItem(factory.createMenuItem(action)); } }