visualmodeler
Class MenuView

java.lang.Object
  |
  +--visualmodeler.MenuView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.util.Observer

public class MenuView
extends java.lang.Object
implements java.awt.event.ActionListener, java.util.Observer

MenuView setups the menu bar.


Constructor Summary
MenuView(javax.swing.JFrame frame, FileModel model)
          Constructs the menu bar.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Action to be performed when event is triggered.
 void update(java.util.Observable obs, java.lang.Object obj)
          Update display of object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuView

public MenuView(javax.swing.JFrame frame,
                FileModel model)
Constructs the menu bar.

Parameters:
frame - Frame to setup the menu bar.
model - File model for file menu functions.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Action to be performed when event is triggered.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - Event

update

public void update(java.util.Observable obs,
                   java.lang.Object obj)
Update display of object.

Specified by:
update in interface java.util.Observer
Parameters:
obs - Object that is observed
obj - Object to update