|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.peer.event.ActionAdapter
sg.edu.nus.peer.event.SPPassClientListener
public class SPPassClientListener
Implement a listener for processing SP_PASS_CLIENT message.
Constructor Summary | |
---|---|
SPPassClientListener(AbstractMainFrame gui)
|
Method Summary | |
---|---|
void |
actionPerformed(java.io.ObjectOutputStream oos,
Message msg)
Invoked when a networking event occurs. |
boolean |
isConsumed(Message msg)
Determine if the listener can consume the network event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPPassClientListener(AbstractMainFrame gui)
Method Detail |
---|
public void actionPerformed(java.io.ObjectOutputStream oos, Message msg) throws EventHandleException
ActionListener
Note: the consumed state should be reset before return a response message.
actionPerformed
in interface ActionListener
actionPerformed
in class ActionAdapter
oos
- the output stream used for replying a message
to the request peer.msg
- the message to be processed
EventHandleException
public boolean isConsumed(Message msg) throws EventHandleException
ActionListener
isConsumed
in interface ActionListener
isConsumed
in class ActionAdapter
msg
- the network event
true
;
otherwise, return false
EventHandleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |