ba4985053f
sensible a way as we can hope for. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1717 542714f4-19e9-0310-aa3c-eee0fc999fb1
48 lines
1.2 KiB
Java
48 lines
1.2 KiB
Java
//
|
|
// $Id: ClientAdapter.java,v 1.4 2002/09/19 23:36:59 mdb Exp $
|
|
|
|
package com.threerings.presents.client;
|
|
|
|
/**
|
|
* The client adapter makes life easier for client observer classes that
|
|
* only care about one or two of the client observer callbacks. They can
|
|
* either extend client adapter or create an anonymous class that extends
|
|
* it and overrides just the callbacks they care about.
|
|
*
|
|
* <p> Note that the client adapter defaults to always ratifying a call to
|
|
* {@link #clientWillLogoff} by returning true.
|
|
*/
|
|
public class ClientAdapter implements ClientObserver
|
|
{
|
|
// documentation inherited
|
|
public void clientDidLogon (Client client)
|
|
{
|
|
}
|
|
|
|
// documentation inherited
|
|
public void clientFailedToLogon (Client client, Exception cause)
|
|
{
|
|
}
|
|
|
|
// documentation inherited from interface
|
|
public void clientObjectDidChange (Client client)
|
|
{
|
|
}
|
|
|
|
// documentation inherited
|
|
public void clientConnectionFailed (Client client, Exception cause)
|
|
{
|
|
}
|
|
|
|
// documentation inherited
|
|
public boolean clientWillLogoff (Client client)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// documentation inherited
|
|
public void clientDidLogoff (Client client)
|
|
{
|
|
}
|
|
}
|