gvprojects.igel.view
Class DefaultIgelMenu

java.lang.Object
  extended by gvprojects.igel.view.DefaultIgelMenu

public class DefaultIgelMenu
extends java.lang.Object

Builds a simple menu for an IgelArgern view

Author:
Zachary Kurmas

Constructor Summary
DefaultIgelMenu()
           
 
Method Summary
 void addAboutListener(java.awt.event.ActionListener listener)
          Add a listener for the restart menu option.
 void addExitListener(java.awt.event.ActionListener listener)
          Add a listener for the exit menu option.
 void addRestartListener(java.awt.event.ActionListener listener)
          Add a listener for the restart menu option.
 javax.swing.JMenuBar getMenuBar()
          return the default menu bar
static boolean getPermission(java.lang.String question)
          Get permission for an activity (reset, quit, etc)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIgelMenu

public DefaultIgelMenu()
Method Detail

addExitListener

public void addExitListener(java.awt.event.ActionListener listener)
Add a listener for the exit menu option.

Parameters:
listener - the listener

addRestartListener

public void addRestartListener(java.awt.event.ActionListener listener)
Add a listener for the restart menu option.

Parameters:
listener - the listener

addAboutListener

public void addAboutListener(java.awt.event.ActionListener listener)
Add a listener for the restart menu option.

Parameters:
listener - the listener

getMenuBar

public javax.swing.JMenuBar getMenuBar()
return the default menu bar

Returns:
the default JMenuBar

getPermission

public static boolean getPermission(java.lang.String question)
Get permission for an activity (reset, quit, etc)

Parameters:
question - the question to ask
Returns:
true if the answer was "Yes", false otherwise