Added a simple chat server test framework onto which I will built a
JME-based client. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3512 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// $Id$
|
||||
|
||||
package com.threerings.crowd.client;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
import com.threerings.crowd.util.CrowdContext;
|
||||
|
||||
import com.threerings.micasa.client.ChatPanel;
|
||||
import com.threerings.micasa.client.OccupantList;
|
||||
|
||||
/**
|
||||
* Displays a simple chat view.
|
||||
*/
|
||||
public class JabberPanel extends JPanel
|
||||
implements PlaceView
|
||||
{
|
||||
public JabberPanel (CrowdContext ctx)
|
||||
{
|
||||
_ctx = ctx;
|
||||
setLayout(new BorderLayout());
|
||||
add(new ChatPanel(ctx), BorderLayout.CENTER);
|
||||
add(new OccupantList(ctx), BorderLayout.EAST);
|
||||
}
|
||||
|
||||
// documentation inherited from interface PlaceView
|
||||
public void willEnterPlace (PlaceObject plobj)
|
||||
{
|
||||
}
|
||||
|
||||
// documentation inherited from interface PlaceView
|
||||
public void didLeavePlace (PlaceObject plobj)
|
||||
{
|
||||
}
|
||||
|
||||
protected CrowdContext _ctx;
|
||||
}
|
||||
Reference in New Issue
Block a user