examples.chat
Class GuiClientImpl

java.lang.Object
  extended by examples.chat.GuiClientImpl
All Implemented Interfaces:
Chat

public class GuiClientImpl
extends Object
implements Chat

This component acts like a proxy for the Chat service. This is necessary because SwingAppFramework has its own instantiation mechanism, confusing with the SCA scope/instantiation mechanism.

Author:
Christophe Demarey.

Constructor Summary
GuiClientImpl()
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 String getMessages()
          Get all messages received by the chat server.
 void sendMessage(String pseudo, String msg)
          Send a message to the chat server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiClientImpl

public GuiClientImpl()
Method Detail

connect

public final void connect()
See Also:
examples.chat.Chat#connect(String)

disconnect

public final void disconnect()
See Also:
examples.chat.Chat#disconnect()

getMessages

public final String getMessages()
Description copied from interface: Chat
Get all messages received by the chat server.

Specified by:
getMessages in interface Chat
Returns:
The list of received messages.
See Also:
Chat.getMessages()

sendMessage

public final void sendMessage(String pseudo,
                              String msg)
Description copied from interface: Chat
Send a message to the chat server

Specified by:
sendMessage in interface Chat
Parameters:
pseudo - - The pseudo of the sender.
msg - - The message to send.
See Also:
examples.chat.Chat#sendMessage(String)


Copyright © 2011. All Rights Reserved.