visualmodeler
Class MenuView

Object
  extended byvisualmodeler.MenuView
All Implemented Interfaces:
ActionListener, EventListener, Observer

public class MenuView
extends Object
implements ActionListener, Observer

MenuView setups the menu bar

Version:
1.1
Author:
Anthony Sulistio and Chee Shin Yeo
Invariant:
$none

Constructor Summary
MenuView(javax.swing.JFrame frame, FileModel model)
          Constructs the menu bar
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Action to be performed when event is triggered
 void update(Observable obs, Object obj)
          Update display of object
 
Methods inherited from class 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
Pre Condition:
frame != null, model != null
Post Condition:
$none
Method Detail

actionPerformed

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

Specified by:
actionPerformed in interface ActionListener
Parameters:
evt - an ActionEvent object
Pre Condition:
evt != null
Post Condition:
$none

update

public void update(Observable obs,
                   Object obj)
Update display of object

Specified by:
update in interface Observer
Parameters:
obs - Object that is observed
obj - Object to update
Pre Condition:
obs != null, obj != null
Post Condition:
$none