addObserver -> addClientObserver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@982 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ClientController.java,v 1.11 2001/12/20 01:10:51 shaper Exp $
|
||||
// $Id: ClientController.java,v 1.12 2002/02/09 20:47:11 mdb Exp $
|
||||
|
||||
package com.threerings.micasa.client;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ClientController
|
||||
_frame = frame;
|
||||
|
||||
// we want to know about logon/logoff
|
||||
_ctx.getClient().addObserver(this);
|
||||
_ctx.getClient().addClientObserver(this);
|
||||
|
||||
// create the logon panel and display it
|
||||
_logonPanel = new LogonPanel(_ctx);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MiCasaApp.java,v 1.5 2002/01/19 04:02:11 mdb Exp $
|
||||
// $Id: MiCasaApp.java,v 1.6 2002/02/09 20:47:11 mdb Exp $
|
||||
|
||||
package com.threerings.micasa.client;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class MiCasaApp
|
||||
}
|
||||
|
||||
// we want to exit when we logged off or failed to log on
|
||||
client.addObserver(new ClientAdapter() {
|
||||
client.addClientObserver(new ClientAdapter() {
|
||||
public void clientFailedToLogon (Client c, Exception cause) {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MiCasaApplet.java,v 1.5 2002/01/19 04:16:02 mdb Exp $
|
||||
// $Id: MiCasaApplet.java,v 1.6 2002/02/09 20:47:11 mdb Exp $
|
||||
|
||||
package com.threerings.micasa.client;
|
||||
|
||||
@@ -46,7 +46,7 @@ public class MiCasaApplet extends Applet
|
||||
new UsernamePasswordCreds(username, authkey));
|
||||
|
||||
// we want to hide the client frame when we logoff
|
||||
client.addObserver(new ClientAdapter() {
|
||||
client.addClientObserver(new ClientAdapter() {
|
||||
public void clientDidLogoff (Client c)
|
||||
{
|
||||
_frame.setVisible(false);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ClientController.java,v 1.3 2002/02/05 22:57:44 mdb Exp $
|
||||
// $Id: ClientController.java,v 1.4 2002/02/09 20:47:11 mdb Exp $
|
||||
|
||||
package com.threerings.micasa.simulator.client;
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ClientController
|
||||
_info = info;
|
||||
|
||||
// we want to know about logon/logoff
|
||||
_ctx.getClient().addObserver(this);
|
||||
_ctx.getClient().addClientObserver(this);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SimulatorApp.java,v 1.4 2002/02/05 22:58:23 mdb Exp $
|
||||
// $Id: SimulatorApp.java,v 1.5 2002/02/09 20:47:11 mdb Exp $
|
||||
|
||||
package com.threerings.micasa.simulator.client;
|
||||
|
||||
@@ -86,7 +86,7 @@ public class SimulatorApp
|
||||
client.setServer("localhost", Client.DEFAULT_SERVER_PORT);
|
||||
|
||||
// we want to exit when we logged off or failed to log on
|
||||
client.addObserver(new ClientAdapter() {
|
||||
client.addClientObserver(new ClientAdapter() {
|
||||
public void clientFailedToLogon (Client c, Exception cause) {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user