All Packages Class Hierarchy This Package Previous Next Index
Class jdsltools.visualization.FrameWithMenuBar
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----jdsltools.visualization.FrameWithMenuBar
- public abstract class FrameWithMenuBar
- extends Frame
A simple frame with a menu bar. The frame calls a subclass implementation
of createMenus, passing it an empty MenuBar. The subclass
initializes the MenuBar, and then the Frame adds the menu bar.
In addition, it handles destroying the window, and also shows menu items
whenever a menu event happens.
- Version:
- $Revision: 1.6 $, $Date: 1998/07/10 16:34:23 $
- Author:
- Mike Boilen
-
FrameWithMenuBar(String)
- the subclass implementation of
createMenus.
-
aboutToBeDestroyed()
- Handles hiding this window.
-
BeingClosed()
-
-
createMenus(MenuBar)
- Creates the menus for this
Frame.
-
handleMenuEvent(MenuItem)
-
FrameWithMenuBar
protected FrameWithMenuBar(String s)
- the subclass implementation of
createMenus. Then displays
the menu bar, and sets up listeners so that window closing is handled.
- Parameters:
- s - The name of this frame.
createMenus
protected abstract void createMenus(MenuBar menuBar)
- Creates the menus for this
Frame. Overridden by the
subclass.
handleMenuEvent
protected boolean handleMenuEvent(MenuItem item)
aboutToBeDestroyed
protected void aboutToBeDestroyed()
- Handles hiding this window.
BeingClosed
protected abstract void BeingClosed()
All Packages Class Hierarchy This Package Previous Next Index