|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectexamples.chat.GuiClientImpl
public class GuiClientImpl
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.
| Field Summary | |
|---|---|
Chat |
chatService
|
| Constructor Summary | |
|---|---|
GuiClientImpl()
|
|
| Method Summary | |
|---|---|
void |
connect()
Initialize a connection with the chat server. |
void |
disconnect()
Leave the chat. |
java.lang.String |
getMessages()
Get all messages received by the chat server. |
void |
sendMessage(java.lang.String pseudo,
java.lang.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 |
| Field Detail |
|---|
public Chat chatService
| Constructor Detail |
|---|
public GuiClientImpl()
| Method Detail |
|---|
public void connect()
Chat
connect in interface Chatexamples.chat.Chat#connect(String)public void disconnect()
Chat
disconnect in interface ChatChat.disconnect()public java.lang.String getMessages()
Chat
getMessages in interface ChatChat.getMessages()
public void sendMessage(java.lang.String pseudo,
java.lang.String msg)
Chat
sendMessage in interface Chatpseudo - - The pseudo of the sender.msg - - The message to send.examples.chat.Chat#sendMessage(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||