Back to project page libgdx-chat-example.
The source code is released under:
Apache License
If you think the Android project libgdx-chat-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.stofkat.chat.html; // w ww. j a v a2 s . co m import org.stofkat.chat.common.actions.Action; import org.stofkat.chat.common.results.Result; import org.stofkat.chat.core.Chat; import org.stofkat.chat.html.dispatch.GwtAsyncCallbackHandler; import org.stofkat.chat.html.dispatch.GwtDispatchService; import org.stofkat.chat.html.dispatch.GwtDispatchServiceAsync; import com.google.gwt.core.client.GWT; public class HtmlChat extends Chat { private final GwtDispatchServiceAsync chatService = GWT.create(GwtDispatchService.class); @Override public <R extends Result> void executeServerAction(Action<R> action) { chatService.execute(action, new GwtAsyncCallbackHandler<R>(this)); } }