?? chatterimpl.java
字號:
/*
* Created on 2004-12-11
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package chatclient;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import chat.*;
/**
* @author Lance
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class ChatterImpl
extends UnicastRemoteObject
implements Chatter{
ChatClient client;
/**
* @throws RemoteException
*/
public ChatterImpl(ChatClient client) throws RemoteException {
this.client=client;
// TODO Auto-generated constructor stub
}
public void receiveEnter(String name, Chatter chatter, boolean hasEntered)
throws RemoteException{
client.receiveEnter(name, chatter, hasEntered);
}
public void receiveExit(String name)throws RemoteException{
client.receiveExit(name);
}
public void receiveChat(String name, String message)throws RemoteException{
client.receiveChat(name, message);
}
public void receiveWhisper(String name, String message)throws RemoteException{
client.receiveWhisper(name, message);
}
public void serverStop()throws RemoteException{
client.serverStop();
}
}//END CLASS
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -