com.iisc.jwc.jsheet
Class SessionAdapter

java.lang.Object
  extended bycom.iisc.jwc.jsheet.SessionAdapter
All Implemented Interfaces:
java.util.EventListener, SessionListener

public abstract class SessionAdapter
extends java.lang.Object
implements SessionListener

The SessionAdapter handles events that occurr on this session with the server. The methods in this class are empty; this class is provided as a convenience to easily create listeners by extending this class and overriding only the methods of interest.


Constructor Summary
SessionAdapter()
           
 
Method Summary
 void bookClosed(SessionEvent e)
          Invoked when a book is closed by this client.
 void bookOpened(SessionEvent e)
          Invoked when a book is opened by this client.
 void killClient(SessionEvent e)
          Invoked when a terminate message is sent from the server.
 void messageReceived(SessionEvent e)
          Invoked when a message is sent from the server to this client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionAdapter

public SessionAdapter()
Method Detail

bookClosed

public void bookClosed(SessionEvent e)
Invoked when a book is closed by this client.

Specified by:
bookClosed in interface SessionListener
Parameters:
e - e.getName() returns the name of the book that was closed.

bookOpened

public void bookOpened(SessionEvent e)
Invoked when a book is opened by this client.

Specified by:
bookOpened in interface SessionListener
Parameters:
e - e.getName() returns the name of the book that was opened.

killClient

public void killClient(SessionEvent e)
Invoked when a terminate message is sent from the server.

Specified by:
killClient in interface SessionListener
Parameters:
e - e.getFlag() returns true if the server has been cleaned up, and false if client should clean up as quickly as possible.

messageReceived

public void messageReceived(SessionEvent e)
Invoked when a message is sent from the server to this client.

Specified by:
messageReceived in interface SessionListener
Parameters:
e - e.getSender() and e.getMsg() return the name of the sender and the message sent.

Email JSheet Support

www.jsheet.com
Copyright 1995 - 2003 Investment Intelligence Systems Limited.