Skip to content

Instantly share code, notes, and snippets.

@ybon3
Created November 25, 2016 09:02
Show Gist options
  • Save ybon3/bba79ebf1efdee0864f1cdbad23604c8 to your computer and use it in GitHub Desktop.
Save ybon3/bba79ebf1efdee0864f1cdbad23604c8 to your computer and use it in GitHub Desktop.
用來取代 AppForJQM 的 JQMEP
package com.dtc.fidxc.web.client;
import com.google.gwt.core.client.Callback;
import com.google.gwt.user.client.Window;
import com.sksamuel.jqm4gwt.ScriptUtils;
import us.dontcareabout.gwt.client.GFEP;
public abstract class JQMEP extends GFEP {
@Override
protected final void start() {
ScriptUtils.waitJqmLoaded(new Callback<Void, Throwable>() {
@Override
public void onSuccess(Void result) {
startJQM();
}
@Override
public void onFailure(Throwable reason) {
Window.alert(reason.getMessage());
}
});
}
protected abstract void startJQM();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment