Package com.smartgwt.client.rpc
Class DMI
java.lang.Object
com.smartgwt.client.rpc.DMI
This class provides static methods to call server-side DMI methods exposed via a
ApplicationDeclaration
file.
Note: This class is only functional if you have Smart GWT Pro or above.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Static method to call a server-side DMI method exposed via aApplicationDeclaration
file.static void
call
(String appID, String className, String methodName, RPCCallback callback, Object[] arguments, RPCRequest requestParams) Static method to call a server-side DMI method exposed via aApplicationDeclaration
file.
-
Constructor Details
-
DMI
public DMI()
-
-
Method Details
-
call
public static void call(String appID, String className, String methodName, RPCCallback callback, Object[] arguments) Static method to call a server-side DMI method exposed via aApplicationDeclaration
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 inRPCRequest.setData(com.google.gwt.core.client.JavaScriptObject)
.- Parameters:
appID
- Name of theApplicationDeclaration
(.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 method
-
call
public static void call(String appID, String className, String methodName, RPCCallback callback, Object[] arguments, RPCRequest requestParams) Static method to call a server-side DMI method exposed via aApplicationDeclaration
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 inRPCRequest.setData(com.google.gwt.core.client.JavaScriptObject)
.- Parameters:
appID
- Name of theApplicationDeclaration
(.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 theRPCRequest
generated by this DMI call.
-