org.fuin.apps4swing
Class MenuFactory

java.lang.Object
  extended by org.fuin.apps4swing.MenuFactory

public final class MenuFactory
extends Object

Utility class to create Swing menus.


Method Summary
static JMenuBar createMenuBar(org.fuin.apps4j.menu.Menu menu)
          Creates a menu bar from the menu definition.
static JPopupMenu createPopupMenu(org.fuin.apps4j.menu.Menu menu)
          Creates a popup from the menu definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMenuBar

public static JMenuBar createMenuBar(org.fuin.apps4j.menu.Menu menu)
Creates a menu bar from the menu definition.

Parameters:
menu - Menu to create a menu bar from.
Returns:
Menu bar.

createPopupMenu

public static JPopupMenu createPopupMenu(org.fuin.apps4j.menu.Menu menu)
Creates a popup from the menu definition.

Parameters:
menu - Menu to create a popup from.
Returns:
Popup menu.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.