|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteCommand<T>
A RemoteCommand can be used to execute a call from client to the server side. The possibility to queue RemoteCommands is one of the advantages.
| Method Summary | |
|---|---|
void |
execute(EventServiceAsync anEventService)
This method executes the RemoteCommand. |
com.google.gwt.user.client.rpc.AsyncCallback<T> |
getCallback()
Returns the callback, which can be set with the link method ( init(com.google.gwt.user.client.rpc.AsyncCallback)) |
void |
init(com.google.gwt.user.client.rpc.AsyncCallback<T> aCallback)
Initializes the RemoteCommand with a callback, which can also be used in the execute method execute(de.novanic.eventservice.client.event.service.EventServiceAsync) |
boolean |
isInitialized()
Checks if the RemoteCommand is initialized with a callback. |
| Method Detail |
|---|
void init(com.google.gwt.user.client.rpc.AsyncCallback<T> aCallback)
execute(de.novanic.eventservice.client.event.service.EventServiceAsync)
aCallback - callbackboolean isInitialized()
init(com.google.gwt.user.client.rpc.AsyncCallback))
was called with a callback, false when the RemoteCommand wasn't initialized with a callback.void execute(EventServiceAsync anEventService)
EventService
and to the initialized callback (getCallback()).
anEventService - EventServicecom.google.gwt.user.client.rpc.AsyncCallback<T> getCallback()
init(com.google.gwt.user.client.rpc.AsyncCallback))
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||