interface.java

来自「j2me jsr172标准实例」· Java 代码 · 共 34 行

JAVA
34
字号
/* * @(#)Interface.java	1.3 04/01/27 * * Copyright (c) 2000-2004 Sun Microsystems, Inc. All rights reserved.  * PROPRIETARY/CONFIDENTIAL * Use is subject to license terms */package serverscript;import java.rmi.Remote;import java.rmi.RemoteException;/** * Interface file with functions that client can call on this service. */public interface Interface extends Remote {    /**     * Request screen.     * Client state is defined by function parameters.     * Result of the function is string containing xml data describing     * next screen to be displayed on client.     * @param id Client or client state id. Interpreted only by server.     * Initial value of client id is 0. Server in xml data returned can request     * client to change his id.     * @param info Data entered or selected on client. In List it is name of     * selected item. In TextBox it is a value entered by user.     * @param command Command name pressed by user.     * @return xml string representing next screen to be displayed on client.     */    String request(String info, String command) throws RemoteException;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?