ishitai.oopad
Class Adapter

java.lang.Object
  |
  +--ishitai.oopad.Adapter

public class Adapter
extends java.lang.Object
implements MenuEventListener

Adapter.java Created: Thu Sep 02 14:45:41 1999


Constructor Summary
Adapter(EditorMenu em)
           
 
Method Summary
 void handleMenuEvent(MenuEvent me)
          Invokes a method in the target which the target has related to a command String
 void registerCall(java.lang.String call, java.lang.String methodname)
          Allows the Module to connect its methods to the ActionCommand of the menus
 java.awt.Component[] setTarget(java.lang.Object target, java.awt.event.WindowListener wl)
          Returns an array currently containing the guis TextArea, status TextField and Frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Adapter

public Adapter(EditorMenu em)
Method Detail

setTarget

public java.awt.Component[] setTarget(java.lang.Object target,
                                      java.awt.event.WindowListener wl)
Returns an array currently containing the guis TextArea, status TextField and Frame. This call passes through the EditorMenu to be loaded by the EditorGui.
Parameters:
target - The module that needs the gui references
wl - The AppCloser to be hooked to the Frame
Returns:
An array of Components

handleMenuEvent

public void handleMenuEvent(MenuEvent me)
Invokes a method in the target which the target has related to a command String
Specified by:
handleMenuEvent in interface MenuEventListener
Parameters:
me - The incoming MenuEvent

registerCall

public void registerCall(java.lang.String call,
                         java.lang.String methodname)
Allows the Module to connect its methods to the ActionCommand of the menus
Parameters:
call - The menu's actionCommand, i.e. "exit"
methodname - The Module's method, i.e. "exit()"