no.uio.edd.utils.menuutils
Class MenuStorage

java.lang.Object
  extended by no.uio.edd.utils.menuutils.MenuStorage
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MenuStorage
extends java.lang.Object
implements java.awt.event.ActionListener

Author:
oeide A class used to store the dropdown menus for an application. Is supposed to use a callback interface in order to send menu selections to the application TODO: Work in progress. TODO: Add a method for storing a keyboard shortcut for each menu choice.

Constructor Summary
MenuStorage(java.lang.String menuContentsXml, MenuInterface inMenuInterface)
          Creates a set of dropdown menus.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JMenuBar getMenuBar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuStorage

public MenuStorage(java.lang.String menuContentsXml,
                   MenuInterface inMenuInterface)
Creates a set of dropdown menus. The whole set can then be accessed by the method getMenuBar.

Parameters:
menuContentsXml - an XML String with the structure of the menu.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getMenuBar

public javax.swing.JMenuBar getMenuBar()
Returns:
the set of dropdown menus.