public class DMI
extends java.lang.Object
ApplicationDeclaration
file.
Note: This class is only functional if you have Smart GWT Pro or above.
Constructor and Description |
---|
DMI() |
Modifier and Type | Method and Description |
---|---|
static void |
call(java.lang.String appID,
java.lang.String className,
java.lang.String methodName,
RPCCallback callback,
java.lang.Object[] arguments)
Static method to call a server-side DMI method exposed via a
ApplicationDeclaration file. |
static void |
call(java.lang.String appID,
java.lang.String className,
java.lang.String methodName,
RPCCallback callback,
java.lang.Object[] arguments,
RPCRequest requestParams)
Static method to call a server-side DMI method exposed via a
ApplicationDeclaration file. |
public static void call(java.lang.String appID, java.lang.String className, java.lang.String methodName, RPCCallback callback, java.lang.Object[] arguments)
ApplicationDeclaration
file.
Each argument passed into this method will be serialized to JSON, then converted back into Java
on the server, and passed to the server side method, The translation follows the same rules
described in RPCRequest.setData(com.google.gwt.core.client.JavaScriptObject)
.appID
- Name of the ApplicationDeclaration
(.app.xml) file to look inclassName
- className (or ID) of the server object on which the method will be invokedmethodName
- The name of the method to call on the serverObjectcallback
- Callback to execute when the DMI call completesarguments
- array of arguments to pass to the server side methodpublic static void call(java.lang.String appID, java.lang.String className, java.lang.String methodName, RPCCallback callback, java.lang.Object[] arguments, RPCRequest requestParams)
ApplicationDeclaration
file.
Each argument passed into this method will be serialized to JSON, then converted back into Java
on the server, and passed to the server side method, The translation follows the same rules
described in RPCRequest.setData(com.google.gwt.core.client.JavaScriptObject)
.appID
- Name of the ApplicationDeclaration
(.app.xml) file to look inclassName
- className (or ID) of the server object on which the method will be invokedmethodName
- The name of the method to call on the serverObjectcallback
- Callback to execute when the DMI call completesarguments
- array of arguments to pass to the server side methodrequestParams
- Any additional properties that you want to set. The properties
will be applied to the RPCRequest
generated
by this DMI call.