gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class ExitEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.sandia.ccaffeine.dc.user_iface.MVC.event.ExitEvent
All Implemented Interfaces:
java.io.Serializable

public class ExitEvent
extends java.util.EventObject

Used to notify components that the cca server has terminated its communication link with this client. A client might respond by exiting the program.

Can also be used to notify components that an entity wants the application to exit. A view might respond by sending a "exit" message to the cca server.

Possible Scenario
The end-user clicks on the file->exit menu item
The cca notifies the client that it is closing its communication link with the client
The client responds by shutting down the application

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ExitEvent(java.lang.Object source)
          Create an ExitEvent.
 
Method Summary
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExitEvent

public ExitEvent(java.lang.Object source)
Create an ExitEvent. The event can be used to notify components that the cca server has terminated its communication link with this client. A client might respond by exiting tht program.

This event can also be used to notify components that an entity wants the application to exit. A view might respond by sending a "exit" message to the cca server.

Parameters:
source - The object that created this event.