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

Constructor Index

 o FrameWithMenuBar(String)
the subclass implementation of createMenus.

Method Index

 o aboutToBeDestroyed()
Handles hiding this window.
 o BeingClosed()
 o createMenus(MenuBar)
Creates the menus for this Frame.
 o handleMenuEvent(MenuItem)

Constructors

 o 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.

Methods

 o createMenus
 protected abstract void createMenus(MenuBar menuBar)
Creates the menus for this Frame. Overridden by the subclass.

 o handleMenuEvent
 protected boolean handleMenuEvent(MenuItem item)
 o aboutToBeDestroyed
 protected void aboutToBeDestroyed()
Handles hiding this window.

 o BeingClosed
 protected abstract void BeingClosed()

All Packages  Class Hierarchy  This Package  Previous  Next  Index