|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.sample.chat.client.core.ClientFacade
Provides a client facade.
Constructor Summary | |
ClientFacade()
Create a client. |
Method Summary | |
void |
close()
|
void |
login(java.lang.String name)
Log in with a given nickname. |
void |
open(java.lang.String host,
int port)
|
void |
register(jtge.engine.security.ILoginView view)
Register a view to receive login events. |
void |
register(IMessageView view)
Register a view to receive message events. |
void |
register(jtge.engine.io.IStatusObserver view)
Register a view to receive connection events. |
void |
send(java.lang.String message)
Send a message to the server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientFacade()
Method Detail |
public final void register(jtge.engine.io.IStatusObserver view)
register
in interface IController
view
- the view to registerpublic final void register(IMessageView view)
register
in interface IController
view
- the view to registerpublic final void register(jtge.engine.security.ILoginView view)
register
in interface IController
view
- the view to registerpublic final void open(java.lang.String host, int port)
open
in interface jtge.engine.net.IClient
public final void login(java.lang.String name)
login
in interface IController
name
- the nickname to usepublic final void send(java.lang.String message)
send
in interface IController
message
- the content of the messagepublic final void close()
close
in interface jtge.engine.net.IClosable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |