|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgvprojects.igel.view.DefaultIgelMenu
public class DefaultIgelMenu
Builds a simple menu for an IgelArgern view
| 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 |
|---|
public DefaultIgelMenu()
| Method Detail |
|---|
public void addExitListener(java.awt.event.ActionListener listener)
listener - the listenerpublic void addRestartListener(java.awt.event.ActionListener listener)
listener - the listenerpublic void addAboutListener(java.awt.event.ActionListener listener)
listener - the listenerpublic javax.swing.JMenuBar getMenuBar()
JMenuBarpublic static boolean getPermission(java.lang.String question)
question - the question to ask
true if the answer was "Yes", false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||