Cope with a CrowdContext if that's all we need.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3216 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2004-11-15 01:47:52 +00:00
parent 39fcb381e2
commit 1bc67db023
2 changed files with 8 additions and 9 deletions
@@ -1,5 +1,5 @@
// //
// $Id: ChatPanel.java,v 1.28 2004/08/27 02:12:49 mdb Exp $ // $Id: ChatPanel.java,v 1.29 2004/11/15 01:47:52 mdb Exp $
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -62,15 +62,15 @@ import com.threerings.crowd.client.OccupantObserver;
import com.threerings.crowd.client.PlaceView; import com.threerings.crowd.client.PlaceView;
import com.threerings.crowd.data.OccupantInfo; import com.threerings.crowd.data.OccupantInfo;
import com.threerings.crowd.data.PlaceObject; import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.micasa.Log; import com.threerings.micasa.Log;
import com.threerings.micasa.util.MiCasaContext;
public class ChatPanel public class ChatPanel
extends JPanel extends JPanel
implements ActionListener, ChatDisplay, OccupantObserver, PlaceView implements ActionListener, ChatDisplay, OccupantObserver, PlaceView
{ {
public ChatPanel (MiCasaContext ctx) public ChatPanel (CrowdContext ctx)
{ {
// keep this around for later // keep this around for later
_ctx = ctx; _ctx = ctx;
@@ -315,7 +315,7 @@ public class ChatPanel
return size; return size;
} }
protected MiCasaContext _ctx; protected CrowdContext _ctx;
protected ChatDirector _chatdtr; protected ChatDirector _chatdtr;
protected boolean _focus = true; protected boolean _focus = true;
@@ -1,5 +1,5 @@
// //
// $Id: OccupantList.java,v 1.8 2004/08/27 02:12:49 mdb Exp $ // $Id: OccupantList.java,v 1.9 2004/11/15 01:47:52 mdb Exp $
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -29,8 +29,7 @@ import com.threerings.crowd.client.OccupantObserver;
import com.threerings.crowd.client.PlaceView; import com.threerings.crowd.client.PlaceView;
import com.threerings.crowd.data.OccupantInfo; import com.threerings.crowd.data.OccupantInfo;
import com.threerings.crowd.data.PlaceObject; import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.micasa.util.MiCasaContext;
/** /**
* The occupant list displays the list of users that are in a particular * The occupant list displays the list of users that are in a particular
@@ -43,7 +42,7 @@ public class OccupantList
* Constructs an occupant list with the supplied context which it will * Constructs an occupant list with the supplied context which it will
* use to register itself with the necessary managers. * use to register itself with the necessary managers.
*/ */
public OccupantList (MiCasaContext ctx) public OccupantList (CrowdContext ctx)
{ {
// set up our list model // set up our list model
_model = new DefaultListModel(); _model = new DefaultListModel();
@@ -95,7 +94,7 @@ public class OccupantList
} }
/** Our client context. */ /** Our client context. */
protected MiCasaContext _ctx; protected CrowdContext _ctx;
/** A list model that provides a vector interface. */ /** A list model that provides a vector interface. */
protected DefaultListModel _model; protected DefaultListModel _model;