vooga.levelEditor.xml.menu
Class MenuXMLParser

java.lang.Object
  extended by vooga.levelEditor.xml.menu.MenuXMLParser

public class MenuXMLParser
extends java.lang.Object

This class is able to create a JMenuBar from an XML file.

Author:
Phil Puryear

Constructor Summary
MenuXMLParser(java.util.ResourceBundle resBundle, java.lang.Object menuItemContainer)
          Constructs a new MenuFactory.
 
Method Summary
 javax.swing.JMenuBar buildMenuBar(java.io.File menuBarFile)
          Constructs a JMenuBar from the specified XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuXMLParser

public MenuXMLParser(java.util.ResourceBundle resBundle,
                     java.lang.Object menuItemContainer)
Constructs a new MenuFactory.

Parameters:
resBundle - A resource bundle to translate "name" fields into the appropriate locale-specific strings.
Method Detail

buildMenuBar

public javax.swing.JMenuBar buildMenuBar(java.io.File menuBarFile)
                                  throws java.io.IOException,
                                         org.xml.sax.SAXException
Constructs a JMenuBar from the specified XML file.

Throws:
java.io.IOException - If an I/O error occurred.
org.xml.sax.SAXException - If an XML parser error occurred.