org.jboss.remoting.samples.chat.client
Class LocalStrategy

java.lang.Object
  extended byorg.jboss.remoting.samples.chat.client.LocalStrategy
All Implemented Interfaces:
ConnectionStrategy, org.jboss.remoting.samples.chat.client.CreateConnectionStrategy, org.jboss.remoting.samples.chat.client.InfoConnectionStrategy, org.jboss.remoting.samples.chat.client.JoinConnectionStrategy, org.jboss.remoting.samples.chat.client.ListConnectionStrategy

public class LocalStrategy
extends java.lang.Object
implements ConnectionStrategy, org.jboss.remoting.samples.chat.client.CreateConnectionStrategy, org.jboss.remoting.samples.chat.client.InfoConnectionStrategy, org.jboss.remoting.samples.chat.client.JoinConnectionStrategy, org.jboss.remoting.samples.chat.client.ListConnectionStrategy


Field Summary
protected static org.jboss.logging.Logger log
           
 
Constructor Summary
LocalStrategy(CloseableFrame parent, RemoteStrategy remoteStrategy)
           
 
Method Summary
 void create()
           
 void createChat(java.lang.String description, ChatMember owner)
           
 void getId(ChatInfo chatInfo)
           
 void getInfo(java.util.ArrayList chatInfoList, int key)
           
protected  boolean isChatting()
           
 void join(ChatInfo chatInfo, ChatMember newMember)
           
 void list()
           
 void notifyOnClose(java.awt.Component c)
           
protected  void setIsChatting(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.jboss.logging.Logger log
Constructor Detail

LocalStrategy

public LocalStrategy(CloseableFrame parent,
                     RemoteStrategy remoteStrategy)
Method Detail

list

public void list()
Specified by:
list in interface ConnectionStrategy

create

public void create()
            throws ConnectionException
Specified by:
create in interface ConnectionStrategy
Throws:
ConnectionException

createChat

public void createChat(java.lang.String description,
                       ChatMember owner)
                throws CreateConnectionException
Specified by:
createChat in interface org.jboss.remoting.samples.chat.client.CreateConnectionStrategy
Throws:
CreateConnectionException

join

public void join(ChatInfo chatInfo,
                 ChatMember newMember)
          throws JoinConnectionException
Specified by:
join in interface org.jboss.remoting.samples.chat.client.JoinConnectionStrategy
Throws:
JoinConnectionException

getId

public void getId(ChatInfo chatInfo)
Specified by:
getId in interface org.jboss.remoting.samples.chat.client.InfoConnectionStrategy

getInfo

public void getInfo(java.util.ArrayList chatInfoList,
                    int key)
             throws ListConnectionException
Specified by:
getInfo in interface org.jboss.remoting.samples.chat.client.ListConnectionStrategy
Throws:
ListConnectionException

notifyOnClose

public void notifyOnClose(java.awt.Component c)

isChatting

protected boolean isChatting()

setIsChatting

protected void setIsChatting(boolean b)


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.