|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFlexOr.utility.QuitItem
public class QuitItem
Create a Quit menu item.
Basic definition comes from "Understanding Object Oriented Programming with Java", Timothy Budd, Addison-Wesley, 1998, p228.
Modified as follows.
Constructor Summary | |
---|---|
QuitItem(java.awt.Frame application,
boolean inApplet)
Create new menubar with a new menu Quit containing the menu item Quit. |
|
QuitItem(java.awt.MenuBar mbar,
java.awt.Frame application,
boolean inApplet)
Create new menu Quit containing the menu item Quit. |
|
QuitItem(java.awt.Menu menu,
java.awt.Frame application,
boolean inApplet)
Create new menu item menu item Quit. |
|
QuitItem(java.awt.MenuItem mitem,
java.awt.Frame application,
boolean inApplet)
Attach the action to dispose the applet window or exit the application. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuitItem(java.awt.Frame application, boolean inApplet)
application
- the application which should be disposed of or exited.inApplet
- set to True if invoked from an applet so dispose is the
action performed. Set to False if invoked from a stand alone application so
exit is the action performed.public QuitItem(java.awt.MenuBar mbar, java.awt.Frame application, boolean inApplet)
mbar
- the menubar in which to place the menu.application
- the application which should be disposed of or exited.inApplet
- set to True if invoked from an applet so dispose is the
action performed. Set to False if invoked from a stand alone application so
exit is the action performed.public QuitItem(java.awt.Menu menu, java.awt.Frame application, boolean inApplet)
menu
- where to place the menu item.application
- the application which should be disposed of or exited.inApplet
- set to True if invoked from an applet so dispose is the
action performed. Set to False if invoked from a stand alone application so
exit is the action performed.public QuitItem(java.awt.MenuItem mitem, java.awt.Frame application, boolean inApplet)
mitem
- the menu item to which to attach the dispose/exit action.application
- the application which should be disposed of or exited.inApplet
- set to True if invoked from an applet so dispose is the
action performed. Set to False if invoked from a stand alone application so
exit is the action performed.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |