|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionListener
Classes which implement this interface provide methods that deal with the events that are generated when the something happened in the connection.
After creating an instance of a class that implements this interface it can
be added to a Connection using the addConnectionListener
method and removed using the removeConnectionListener method.
When the Connection is changed the appropriate method will be invoked.
ConnectionListenerAdapter,
ConnectionEvent| 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 |
| Method Detail |
|---|
void connected(ConnectedEvent e)
e - connection eventvoid disconnected(DisconnectedEvent e)
e - connection eventvoid packetReceived(PacketReceivedEvent e)
e - connection event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||