ch.elca.el4j.services.gui.swing.util
Class MenuUtils

java.lang.Object
  extended by ch.elca.el4j.services.gui.swing.util.MenuUtils

public final class MenuUtils
extends Object

This utility class helps to create menus using Sun's appFramework.

Author:
Stefan Wismer (SWI)
File-location:
MenuUtils
Last check-in date:
2009-08-04 15:17:52 +0200 (Di, 04. Aug 2009) by swismer for revision 3880

Method Summary
static JMenu createMenu(ActionsContext context, String menuName, Collection<String> actionNames)
          Creates a JMenu out of a String array containing action names.
static JPopupMenu createPopup(ActionsContext context, Collection<String> actionNames)
          Creates a JPopupMenu out of a String array containing action names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMenu

public static JMenu createMenu(ActionsContext context,
                               String menuName,
                               Collection<String> actionNames)
Creates a JMenu out of a String array containing action names. A separator is represented by the string "---"

Parameters:
context - the actions context
menuName - the menu name
actionNames - the collection of menu items
Returns:
a JMenu

createPopup

public static JPopupMenu createPopup(ActionsContext context,
                                     Collection<String> actionNames)
Creates a JPopupMenu out of a String array containing action names. A separator is represented by the string "---"

Parameters:
context - the actions context
actionNames - the collection of menu items
Returns:
a JPopupMenu


Copyright © 2005-2011 ELCA. All Rights Reserved.