Adaptor for the plug-in tracker.

Tracking Software Components
by Jerry Gao, Ph.D., Eugene Y. Zhu, and Simon Shim, Ph.D.
Listing 2. Adaptor for the plug-in tracker.


public class BeanTrackerAdapter implements IBeanTracker   {
    public void traceError (String errormsg)  {  }
    public void traceInterface (String methodName, String paramvalue)  {  }
    public void traceOperation (String methodName)  {  }
    public void tracePerformance (String label)  {  }
    public void tracePerformance (String label, boolean isBegin)   {  }
    public void traceState (String name, String value)  {  }
    public EventListener genGUIListener ( )  {return (EventListener)
        (new GUIListenerAdapter  ( )  ) ; }
    public void trace GUI (String itemname, String event) {  }
}

class GUIListenerAdapter extends Object
implements WindowListener, ActionListener, TextListener  {
    public GUIListenerAdapter ( )  { }

/ / implement WindowListener interface
    public void windowActivated (WindowEvent   e)  { }
    public void windowClosed (WindowEvent  e)  { }
    public void windowClosing (WindowEvent  e)  { }
    public void windowDeactivated (WindowEvent  e)  { }
    public void windowDeiconified (WindowEvent  e)  { }
    public void windowIconified (WindowEvent  e)  { }
    public void windowOpened (WindowEvent  e)  { }

/ / implement ActionListener interface
    public void actionPerformed (ActionEvent  e)  { }

    / / implement TextListener interface
    public void textValueChanged (TextEvent  e) { }
}

About the Authors

Jerry Gao, Ph.D. is a full-time faculty member in the Department of Computer Engineering at San Jose University and can be reached at jerrygao@email.sjsu.edu.

Eugene Zhu works at SCSL USA Inc. and may be reached at Eugene@scsl.com.

Simon Shim, Ph.D. is a full-time faculty member in the Department of Computer Engineering at San Jose University and may be reached at sishim@email.sjsu.edu.

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.