📄 statelistenerproxy.java
字号:
package com.croftsoft.core.util.state;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
/*********************************************************************
*
* An adapter for StateListeners of remote States.
*
* @author
* <A HREF="http://www.alumni.caltech.edu/~croft/">David W. Croft</A>
* @version
* 1998-12-05
*********************************************************************/
public class StateListenerProxy
extends UnicastRemoteObject implements StateListenerRemote
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
{
private StateListener stateListener;
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
public StateListenerProxy ( StateListener stateListener )
throws RemoteException
//////////////////////////////////////////////////////////////////////
{
this.stateListener = stateListener;
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
public void stateListen ( State state )
throws RemoteException
//////////////////////////////////////////////////////////////////////
{
stateListener.stateListen ( state );
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -