|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iisc.jwc.jsheet.SessionAdapter
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 |
public SessionAdapter()
Method Detail |
public void bookClosed(SessionEvent e)
bookClosed
in interface SessionListener
e
- e.getName() returns the name of the book that was closed.public void bookOpened(SessionEvent e)
bookOpened
in interface SessionListener
e
- e.getName() returns the name of the book that was opened.public void killClient(SessionEvent e)
killClient
in interface SessionListener
e
- e.getFlag() returns true
if the server has been cleaned up,
and false
if client should clean up as quickly as possible.public void messageReceived(SessionEvent e)
messageReceived
in interface SessionListener
e
- e.getSender() and e.getMsg() return the name of the sender and the message sent.
|
Email JSheet Support | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |