|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.net.ConnectionListenerAdapter
public class ConnectionListenerAdapter
This adapter class provides default implementations for the methods declared
in the ConnectionListener interface.
Classes that wish to deal with ConnectionEvents can extend
this class and override only the methods which they are interested in.
ConnectionListener,
ConnectionEvent| Constructor Summary | |
|---|---|
ConnectionListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
connected(ConnectedEvent e)
Called when connection is established. |
void |
disconnected(DisconnectedEvent e)
Called when connection is closed. |
void |
packetReceived(PacketReceivedEvent e)
Called when packed received The default behavior is to do nothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionListenerAdapter()
| Method Detail |
|---|
public void connected(ConnectedEvent e)
connected in interface ConnectionListenere - connection eventpublic void disconnected(DisconnectedEvent e)
disconnected in interface ConnectionListenere - connection eventpublic void packetReceived(PacketReceivedEvent e)
packetReceived in interface ConnectionListenere - connection event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||