CS4B Spring 2007

Class SelectController

java.lang.Object
  extended by SelectController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SelectController
extends java.lang.Object
implements java.awt.event.ActionListener

The controller portion of the MVC the controller listens for input and drives the model and viewer constructor opens up a socket connection to FruitThreadServer current system has three buttons that send three different queries to Server

See Also:
SelectViewer

Constructor Summary
SelectController(SelectViewer v)
          a future upgrade may send commands back and forth to the model using a socket
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          send all getActionCommand strings to the model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectController

public SelectController(SelectViewer v)
a future upgrade may send commands back and forth to the model using a socket

Parameters:
v - view
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
send all getActionCommand strings to the model

Specified by:
actionPerformed in interface java.awt.event.ActionListener

CS4B Spring 2007