net.pandoragames.far.ui.swing
Class MenuFactory

java.lang.Object
  extended by net.pandoragames.far.ui.swing.MenuFactory

public class MenuFactory
extends java.lang.Object

Utility class that creates the application menu. Just keeps the ugly code out of the way.

Author:
Olivier Wehner

Constructor Summary
MenuFactory(SwingConfig swingConfig, ComponentRepository componentRepository)
          Constructor.
 
Method Summary
 javax.swing.JMenuBar createMenu()
          Creates and returns the application menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuFactory

public MenuFactory(SwingConfig swingConfig,
                   ComponentRepository componentRepository)
Constructor.

Parameters:
swingConfig - configuration object
componentRepository - repository of shared components
Method Detail

createMenu

public javax.swing.JMenuBar createMenu()
Creates and returns the application menu.

Returns:
application menu.