public class Chat extends ReceiverAdapter
构造器和说明 |
---|
Chat() |
限定符和类型 | 方法和说明 |
---|---|
protected static void |
help() |
static void |
main(java.lang.String[] args) |
void |
receive(Message msg)
Called when a message is received.
|
void |
start(JChannel ch)
Method called from other app, injecting channel
|
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
public void viewAccepted(View new_view)
ReceiverAdapter
Channel.connect(String)
returns.viewAccepted
在接口中 MembershipListener
viewAccepted
在类中 ReceiverAdapter
public void receive(Message msg)
ReceiverAdapter
receive
在接口中 MessageListener
receive
在类中 ReceiverAdapter
public void start(JChannel ch) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected static void help()