Class MainView

java.lang.Object
  extended byMainView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.util.Observer

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

View that is responsible for menu commands. Delegates menu command implementation to the relevant view.


Constructor Summary
MainView(TreeView oTreeView, EditNodeView oEditNodeView)
          ctor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Process menu selection
 javax.swing.JMenuBar getMenuBar()
           
protected  void initMenu()
          Populate the menu
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainView

public MainView(TreeView oTreeView,
                EditNodeView oEditNodeView)
ctor

Parameters:
oTreeView - left side tree view
oEditNodeView - right side edit node view
Method Detail

initMenu

protected void initMenu()
Populate the menu


getMenuBar

public javax.swing.JMenuBar getMenuBar()
Returns:
javax.swing.JMenuBar

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Process menu selection

Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer
See Also:
Observer.update(java.util.Observable, java.lang.Object)


Copyright © 2003-2004 . All Rights Reserved.